I need glowing outline around button in unity - unity3d

I am working on a project in unity5, while I am making a menu contain buttons, I need button to make glowing outline, need help in this regard.enter image description here
same in the picture, I need button like this in my Unity 5

if you are using canvas you can do that without using any functions or events it can be easily done select button in inspector you will see button (script) component set transition to sprite swap and drop the desired sprite in pressed sprite box.

Related

Unity UI panel transparency

I'm working on my game and I want to add an inventory type system, when I added the panel it was a little transparent while the one in the video was watching was not. I didn’t see any setting for transparency in the Unity inspector for both the canvas and the panel. The UI mode is an overlay
I didn’t try much other than clicking all the check boxes, and I was excepting for the up to be a solid color.
If you have a Canvas Group in your hierarchy, it can come from here (Alpha property).
I needed to go to colors and slide this slider all the way up or down (the slider you need to change)

Unity3D - Image Slider only visible in specific area

I am trying to build an image slider for my app.
Unfortunately all the images are shown and not only the four images between the two arrows
In picture 2 you can see my hierarchy and in picture 3 you can see my settings for the sldImage GameObject
picture 2
picture 3
what do I have to do, that the images slide in from the right and disappear left?
unfortunately I couldn't find a solution for that so far.
EDIT:
There is no ScrollView in my components.
and if I add a Mask it is still the same.
You need to add a Mask.
If you add a ScrollView to your UI instead of a basic ScrollRect, you get a Mask for free.
Add it using the right-click menu in the Hierarchy Window, by choosing UI->ScrollView

Unity3D - Set a (foreground) UI layer which ignores mouse clicks?

I'm currently writing up a UI-Centric game, and I've added a small image overlay over some elements on screen. However, the problem is that now I can't click any buttons behind this overlay image, regardless of transparency etc.
Just to chance it, I set up a new layer called "noUIclick" and set it to ignore every other layer under physics settings - long shot I know, but no dice. Tried also simply swapping to 3D view and moving the overlay image back on the z-axis.
Is there any easy way to set a layer for UI components which will entirely ignore/allow for passthrough of mouseclicks onto the buttons in the background?
On the Image component, uncheck raycastTarget.

Show a select emoji screen

I am doing a game with Unity3D in which there are 2 players using the same mobile device in turns to play.
I am adding a Settings scene in which each players enters his/her name and can select an Emojicon to use as an avatar in the game.
I have already imported the png file in to my Resources folder and cut it to 80 sprites using the sprite editor called emojicons1_0 to emojicons1_79.
What I need is to enable the players to change the default emojicon in the Settings if they touch the existing emojicon or a button "Change" beside it.
I was thinking of showing a scroll list from the asset called Gamestrap UI and display an array of 4 x 20 emojicons, and they can select there the desired emojicon. I don't know how to do this, and I appreciate any help. I am open to other suggestions of course.
Thanks in advance for any help.
if you are using uGui, there is a number of ways to do it. I would simply create a view prefab, which will composed of scroll list with grid layout inside. It will have a script attach, which will initialise the view by loading textures/sprites and set it to image component of an instantiated button prefab, which represents one icon to select. Then view has callback and on click simply call it with selected image.
Here is references:
https://unity3d.com/learn/tutorials/modules/beginner/ui/ui-scroll-rect
https://docs.unity3d.com/ScriptReference/UI.GridLayoutGroup.html

Unity3d UI Buttons MultiTouch

I am building a game in which there are two ui buttons on the game. I am using unity 4.6 to build this.I have one button that will turn my player blue and another that will turn the player yellow. I need it so when both are pressed my player will turn green. I haven't found much on multitouch with these UI buttons. I would love the help!
In the usual button paradigm, the button completes the action when the user presses the button and then ends the press while the pointer (mouse or finger) still on the button. This is called "click". You are saying that you need this event to happen while the buttons are still pressed — so, you want them to react to press-down event, not the click event. Therefore, they are no longer classical buttons, and you probably shouldn't use Unity's UI Button for this functionality. If you'd use buttons for that, when the user first pressed on both buttons, you'd get green color, but when he then stopped touching them, you'd finally get yellow or blue player.
Instead, use the EventTrigger component on each individual "pseudo-button" to register press-down events, and a separate custom component that would implement your logic. Essentially, the only way to realize your requirements without them being contradictory, is to assign the yellow color when the player is pressing down both "pseudo-buttons" and assign other colors when the player lifts his fingers up from either of them — but given that this particular touch wasn't used to trigger the yellow color.