|
what im trying to do is make it so that when i click on the menu icon it displays or enables the 3d text. But when it's not selected the 3d text is disabled. Can anyone help with me with this code and tell me whats wrong. P.S. Options is the 3D text name.
(comments are locked)
|
|
If you have the game object on which the text is located then this will do it: Its is just 3d text under gameobject moved to a part of the screen i want it to be at. when i used that script it said There is no 'Renderer' attached to the "Main Camera" game object, but a script is trying to access it. You probably need to add a Renderer to the game object "Main Camera". Or your script needs to check if the component is attached before using it.
Jun 16 '12 at 01:06 AM
Robomaster
Ah - I thought you had a reference to the 3D text you wanted to hide. You'll need one of them Define it at the class level and drag and drop your object onto it in the inspector.
Jun 16 '12 at 01:09 AM
whydoidoit
let me give you what i coded gameObject.renderer().enabled = true; P.S. Options is a 3d text for the side menu. I want it to be off when your clicking on something else but when you click on menu it's turned on.
Jun 16 '12 at 01:15 AM
Robomaster
thanks for responing so quickly aslo is that javascript or c#
Jun 16 '12 at 02:01 AM
Robomaster
(comments are locked)
|
