get name from gameobject with script unity c# code example Example: how to name GameObject in c# GameObject.name = "Ben";