Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

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#
Comment

PREVIOUS NEXT
Code Example
Csharp :: if number negative c sharp 
Csharp :: Play Sound c# 
Csharp :: unity pick random number 
Csharp :: The server requested authentication method unknown to the client 
Csharp :: hash table in c# 
Csharp :: unity event 
Csharp :: get device connected to player input unity 
Csharp :: c# new dictionary linq 
Csharp :: ienumerable foreach 
Csharp :: when was the third world war 
Csharp :: how add text to element in javascript 
Csharp :: foreach enum 
Csharp :: Unity Children Destroy 
Csharp :: c# int array length 
Csharp :: badlion 
Csharp :: c# if int is in range 
Csharp :: ajax asp.net core 
Csharp :: c# linq select only unique values from list 
Csharp :: item switch unity 
Csharp :: array join c# 
Csharp :: fluent assertion exception 
Csharp :: unity deactivate component 
Csharp :: rigidbody velocity c# unity 
Csharp :: calculate how much memory an object take c# 
Csharp :: c# foreach object in array json 
Csharp :: c# get all namespaces in assembly 
Csharp :: C# return and set multiple values from method 
Csharp :: list to ienumerable c# 
Csharp :: c# quit button script 
Csharp :: verify if number c# 
ADD CONTENT
Topic
Content
Source link
Name
7+7 =