- Home /
How do I enable my scripts on default??
I´ve been having a problem with scripts since I begin an internet course. Does anyone knows why does it appear in gray? In the video that my teacher uploads it shows normal (not gray).
Thank you all.
This does not mean that your script is disabled this is because you are using a newer version of Unity than the $$anonymous$$cher in the video. I believe this is standard functionality brought into one of the patches for 5.3.x
Answer by Munchy2007 · Jan 08, 2016 at 01:31 PM
Since Unity 5.3 the script field is disabled by default, however if you click the down arrow next to the padlock icon at the top of the inspector and select 'debug' from the drop down menu it will enable the script field as it used to be. (It will also allow you to see private variables etc.)
This was done to stop people from inadvertently changing scripts I believe.
Answer by Neitrosha · Jan 08, 2016 at 08:53 AM
It's because you don't have either Start or Update function in the script. Just do like this:
void Start () {
}
And leave that function empty in case you don't want to use it.