Hello! Per other answers, I have put my GUILayout areas in a different layer with a different camera in an attempt to get them to be hidden below other objects. However, although the camera is working properly, the GUILayout always ends up on top. I’ve even added a 3rd, super-front camera/cube that blocks everything, but the GUILayout text is still on top.
Is there another way?
A followup then :) The gui stuff has been confusing me for a quite a while now - I'm using the following code to display the text: function OnGUI () { GUILayout.Box(textTest, customGuiStyle); } This allows me to adjust the style, the font, the placement (offsets), and the text itself at runtime, so users can move it around an iOS screen and all that. From what it looked like to me, guiText.text wouldn't allow me to dynamically change the content of the text, would it? That is, I wouldn't be able to change it later on, after it's been set?
– infinitypbrYes, of course you can. You just wrote what you use to do that (guiText.text).
– Eric5h5Oh -- GUIText is an object -- I was trying to use that before thinking it was like the GUILayout, all in scripting. I see now that it's an object and I can assign it to a variable and use something like: var block : GUIText; //Assign in Inspector the GUIText object block.text = "Text to show"; Thanks -- time to re-do everything I did today!! :D
– infinitypbr@Eric5h5 Can I ask one more question? http://answers.unity3d.com/questions/428389/word-wrapping-guitext.html I quoted you in it, so I'm hoping something has changed since you gave the answer given.
– infinitypbrSomething has changed ;), but not word-wrap.
– Eric5h5