HI.
this is my question today,
i have some 3D objects rotating, but
when I use GUISkin appear over the 3D object.
and thats my question
how can I send to back the GUISkin please.
here is picture with 4 steeps.
thansk for any help !
Yes, you can get a GUITexture to go to the back like you need, though it’s a little complicated.
The way I do it is with 2 cameras. One that has a GUILayer component and one that doesn’t. The one with the GUILayer component is set to a lower (-2) depth than the main camera and is set to clear to a color. The main camera is set to depth -1 and doesn’t have a GUILayer component, and the clear is set to “depth only”
That should work - it’s a little confusing to get it working right - respond if you can’t get it working as described and I’ll try to explain more clearly or attach a sample.
Looking at your picture, if your Sword png is also a GUITexture, then the method I described above will not work, but you could modify it slightly like this:
Make both cameras have a GUILayer component
Use ‘layers’ to cull the different objects for the different cameras
That is, make 2 new layers, “background” and “foreground” - tag your background GUITexture with ‘background’ and your sword texture with ‘foreground’, and then set each camera’s culling mask to only render the objects with the appropriate tags.
If you’re using only GUITextures, you just layer them with the Z order, no need for multiple cameras. You only need to mess with cameras if you’re layering 3D objects on top of a GUITexture.
[quote=“”] If you’re using only GUITextures, you just layer them with the Z order, no need for multiple cameras. You only need to mess with cameras if you’re layering 3D objects on top of a GUITexture. –Eric
**[/quote]
**
Are you going to tell to me,
that the first question I said, (I star this post)
It is posible now ?
If I do like you say …
i mean, playing GUITextures with 3D objects ? (leyering?)
or only with GUITextures (leyering?)
thanks one more time for all this valuable help for me !