Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# unity get name of object

public GameObject obj;

void Start()
{
	string objName = obj.name;
  	Debug.Log(objName);
}
 
PREVIOUS NEXT
Tagged: #unity #object
ADD COMMENT
Topic
Name
9+7 =