In a Unity canvas a button and an image hide each other even though they don't overlap - unity3d

In my Unity project I have a canvas with a button and an image inside. I have noticed that even though they don't overlap (they are quite distance) they cover each other. So when the button is below the image in the Hierarchy panel the image is not shown. Meanwhile when the image is below the button I cannot view the image attached to button. Nevertheless I can see the button text...

Related

Unity: How can I make a button clickable under an draggable area?

I am working on a screen of a game, and I want this behaviour: when you swipe in any place of the screen (even over a button) you can scroll, but at the same time you can click in any button.
Now I have a big empty image occupying the whole screen that can capture the drag events, but since raycast is ON, click events are not passing down to the elements below in the hierarchy. So buttons are not working.
Which is the proper way of achieving this?

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

I need glowing outline around button in unity

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.

make a background work on all iphones ios

I've just begun playing around with XCode and currently reading on Objective-C!
I have made a dark background and a book-ish "background" on top of it. Example here.
But how do I set it in a constant position on every iOS device and every iPhone screen-sizes?
From the looks of your image I assume that you want it to be fixed to the bottom.
To do that place your image view in the bottom of its superview and change the autosizing to be fixed to the bottom like in this image below.
The little red box in the view labeled "example" shows you how the image view will behave when the superview is resized.
If you want your image view to have a constant position anywhere else, just position it where you want it and set the appropriate autosizing for it (once again, look at the red box to see how it will behave when resized).
If the right pane is not visible press the right pane button in the tool bar (image below) or use the keyboard shortcut ⌘+⎇+0 to display the right pane or ⌘+⎇+5 to go directly to the size inspector.

Sprite background image lags on mouse hover

I have basic DOM menu that has sprite background images for the first level of "LI"s.
It works just fine, but I guess there is some problem and instead of switching the image right away on hover it goes blank and after about a second the hover image "appears" (shifts).
That happens only on first hovering. After that it's smooth like it's supposed to be.
Refresh the page and there it is again...
Frustrating...
Here is a link to check it out: http://goo.gl/6FAM
The problem exist on Firefox v3.6.3.
Chrome 5.0.375 and IE 8.0.7600 don't have this issue.
Any ideas?
It's because the hover background image is not loaded until you pass the mouse on the button.
An easy solution is to use CSS sprites, so you will only have 1 image to deal with.