Answers for "how to access gameobject name"

C#
6

how to access gameobject name

// note how the 'g' is lowercase, when it's lowercase it accesses the GameObject its attached to
gameObject.name
// so if this script was attached an object named "Player", it will access "Player"
Posted by: Guest on July-07-2020
3

how to name GameObject in c#

GameObject.name = "Ben";
Posted by: Guest on April-03-2020

Code answers related to "how to access gameobject name"

C# Answers by Framework

Browse Popular Code Answers by Language