how to shadethe surronings of a gameobject unity code example
Example: gameobject in unity c#
//define "myObject"
//(asign in in inspector)
public GameObject myObject;
//runs when you hit the play button
void Start()
{
//change the name to "myObjectsNewName"
myObject.name = "myObjectsNewName";
}
//Note for Unity and C#