Editing Script Names

You can actually edit the names of scripts even if you didn’t name the script to something other than NewBehaviourScript (when initialliy creating a new script).

Example:

public class NewBehaviourScript : MonoBehaviour 
{
//your code
}

to…

public class YourScript : MonoBehaviour
{
//your code
}

Also make sure to rename the script file to the same name as your class as well.

5 Likes

Thanks! I shall keep that for the future

1 Like

Privacy & Terms