petea
1
Tell me how to return the name of Campanet and where the error.
#pragma strict
private var Mydown;
function Start () {
if(Input.GetKeyUp(KeyCode.Space))
{
MyDown = GetCompanent(NewText);
Mydown.enebled = !Mydown.enebled;
}
}
function Update () {
}
Assets/NewBehaviourScript.js(7,17): BCE0005: Unknown identifier: ‘MyDown’.
Dantus
2
First, please use code tags:
http://forum.unity3d.com/threads/143875-Using-code-tags-properly
And if you get a bunch of error messages in the console, the first one is the most important one.
If you have a close look at the documentation of GetComponent, you will already see many mistakes you have made:
Capitalization and spelling matter.
petea
4
no undestend you wccrawford. tell me object 3dtext
petea
6
this is understandable, but it no undestend where to take classes