Sooo just messing with the new UI for a menu system I just made, and I noticed that setting cameras to active/inactive using scripting doesn’t update the UI interaction priorities. As in, if I have a camera enabled as a sort of “Title Screen” and then switch to another one by disabling the first, the UI does nothing.
Nobody?..
i dont get what you mean…
I have two cameras and a canvas. When I use the first one,the gui is fully functional. When I deactivate camera one through script, and then enable the camera two, the gui is only displayed, it’s not intractable.
Also, I’m wondering if there’d be a way to select the UI elements through script so I can modify them there. Specifically if I can change the color from script.
what type of canvas do you have?
The default. The only thing I changed is having it scale with screen size.
stupidly enough there are two defaults depending on if you create it from the GameObject menu, or the component menu in the inspector.
So you have a Overlay canvas. If thats the case i have no idea what could be going wrong. as it should have nothing to do with a camera.
Let me see if I can reproduce it in a seperate project. I could just be being stupid and missing something
Must just be my project. Let’s see if I can’t fix this…
Nope. I looked at all the settings, they all seem to be the same.Think you could take a look at it if I sent you the project?
I can but might not be till Monday.
Well. I may not need your help. I don’t know why, but it works when I enable then disable the lobby camera.
This is so odd.
Okay, my correction. I have multiple canvases. They only work if the first one on the Hierarchy is enabled. If it’s not enabled, none of them work.