kuos
1
I have a prefab image (wallpaper background image ) that I created in Photoshop. I have some UI buttons in the scene and I want for the image to be behind the UI buttons so that they are still clickable & visible.
I basically followed the guidelines from this post that another forum member answered, but I was not able to get the desired outcome:
[One approach I took was to add a second camera, add a second layer (in the inspector) called “bg image” and created a UI image(tried as raw image as well) that I placed the image I created onto its texture. I put both the UI image and 2nd camera on the same layer and changed its depth to -1, culling mask to “bg image”.]
Is it completely necessary to use a 2nd camera to render stuff behind the first camera? I want the UI image to rescale automatically according to screen size like the UI buttons do ( I am testing on android mobile devices ). Thanks.
Can you not have Image as parent and then the UI button or whatever as a child?
You can set UI Button as a child of the game object has UI Image.
Or;
In hierarchy you can take UI Button to under the UI Image. So you can click and interact with button easily. ._.
do you mean image as a button ,or as the background of the button,if as a button ,directil drag the button