- Home /
Item triggered 3dtext PLZ HELP!!!
When an item is triggered the 3d text = "TEXT" Plz show me how
Answer by Fornoreason1000 · Nov 02, 2013 at 02:56 AM
Please elaborate next time and avoid "write my code " questions or the mods will remove this .
Anyway this is what you do.
Get item object or its state "triggered" for your item, you can do this with GameObject.Find type commands
Get the 3dText Component and its member "text", GameObject.Get/AddCompoent
Write a condition block
When the triggered == true, 3d.text = text;
you should read up on these too;
http://docs.unity3d.com/Documentation/Manual/UsingComponents40.html http://docs.unity3d.com/Documentation/ScriptReference/GameObject.Find.html http://docs.unity3d.com/Documentation/ScriptReference/GameObject.FindGameObjectsWithTag.html http://docs.unity3d.com/Documentation/ScriptReference/GameObject.FindWithTag.html http://docs.unity3d.com/Documentation/ScriptReference/GameObject.GetComponent.html http://docs.unity3d.com/Documentation/ScriptReference/GameObject.AddComponent.html http://msdn.microsoft.com/en-us/library/vstudio/5011f09h.aspx http://www.youtube.com/watch?v=x_9lfHjYtVg