gameObject over guiTexture

hi, im new here, and im having a problem.
i like to know how to put a gameObject over a guiTexture if its posible, if not, how is the best way to make a character selection menu with scaleable background and 3d models over it??

Thnx :stuck_out_tongue:

Hi, welcome to the forum!

GUI draws on top of all scene objects, so there isn’t a way to use the standard GUI classes for this. However, you can define your GUI as a texture and show it on a plane object in the scene. You can use a raycast from the camera to detect which part of the texture was clicked (see here for some sample code). The RaycastHit object returned by the raycast has fields for the texture coordinate and the world space coordinate of the point that was hit. You can use this to determine which part of your in-scene GUI was clicked and use this to activate buttons, etc.

i figure it out and is easy, i can use a Render texture, all i need to do is to put my gameobject in the 3d world and put a camara to film the gameobject and proyect the gameobject in the texture render, put the camera background alpha to 0.0 and walla. gameobject over guitexture, it works for me hope you guys can :stuck_out_tongue: its great for character selection.

Um hi phoenix, I am having the exact same problem as you. However, I can’t really understand your solution. Can you please, please give some more details of it? For example, I am having a GUI texture and I want in front of it to appear a cube, how can I do this?
Thanks a lot