Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

unity find gameobject by name

GameObject enemy = GameObject.Find("enemy");
Comment

c# unity get name of object

public GameObject obj;

void Start()
{
	string objName = obj.name;
  	Debug.Log(objName);
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: send type as argument c# 
Csharp :: unity log error 
Csharp :: c# initialize empty array 
Csharp :: access to element in object c# 
Csharp :: escape double quotes c# 
Csharp :: simple player controller unity 
Csharp :: c# 2d list 
Csharp :: how to convert pdfdocument to binary in c# 
Csharp :: unity random number 
Csharp :: get enum name 
Csharp :: c# datagridview selected row index 
Csharp :: how to remove vowels from a sttring using regex c# 
Csharp :: scenemanager.loadscene 
Csharp :: int to bool c# 
Csharp :: visual studio console clear 
Csharp :: order by length descending C# 
Csharp :: c# adding to a list 
Csharp :: flip a character in unity 
Csharp :: linear search c# 
Csharp :: c# enum syntax 
Csharp :: coroutine start unity 
Csharp :: route attribute controller with parameter asp.net core 
Csharp :: unity audio manager 
Csharp :: what is botnet attack 
Csharp :: create new .net project 
Csharp :: datetime check null c# 
Csharp :: c# delegate 
Csharp :: c# convert string array to int array 
Csharp :: unity text custom color 
Csharp :: mvc write to console 
ADD CONTENT
Topic
Content
Source link
Name
9+1 =