GUITextures/movies and depth ?

Hey everyone,

Is there a way to make a GUI Texture render on top of all the other GUI elements ?
I have a movie in my GUI Texture, and I want that the movie is played on top of my other GUI elements.
Maybe there’s other ways to play movies, than using GUI Textures ?
thanks,
Bruno

I think GUITexture and the other Unity GUI elements follow different sorting rules. Did you try using GUI.DrawTexture to play the movie? Then you could use GUI.Depth to sort the movie among the other GUIs.

Hello,

If you’re trying to get a gui texture to render above another gui texture, you can change the Z transform of the gui textures to put one on top of the other. If you’re trying to put a gui texture on top of a gui created using the Unity GUI system, then the only way I know of to do it is rig up a setup with 2 cameras.

Best wishes,

-Lincoln Green

That’s what i’m tryng to do, render a GUI texture on top of a gui created using the Unity GUI functions.
I already tried with 2 camera setups, but somehow is not working either.
The GUI texture would be in a layer(layer movie), with depth 2 (for example).
The rest of the GUI are created inside a script that is attached to a camera that has depth 0, and ignores layer rendering on movie.
The GUI texture is still being rendered below the objects that are created incode…
Any ideas ?

I still think you should use GUI.DrawTexture (with a texture of type MovieTexture) to display the movie and GUI.depth to put it in front or bellow other GUI. It works for me.