Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

enable script unity

 YourGameObject.GetComponent<YourScript>().enabled = true;
Comment

enable script unity


gameObject.GetComponent<EmailSender >().enabled = false;

Comment

PREVIOUS NEXT
Code Example
Csharp :: how to make something addforce in the direction of something in untiy 
Csharp :: c# get unix timespan 
Csharp :: c# datetime dd/mm/yyy hh:mm:ss 
Csharp :: unity android quit application 
Csharp :: print out a dictionary c# 
Csharp :: get application path c# 
Csharp :: c# print to console 
Csharp :: how to change a image with code unity 
Csharp :: c# executable directory 
Csharp :: current directory in sln file c# 
Csharp :: c# create new thread 
Csharp :: onafterrender blazor 
Csharp :: decimal in .asp.net core 
Csharp :: unity deactive code from code 
Csharp :: how to convert angle to vector in c# 
Csharp :: c# get script directory 
Csharp :: c# get cpu id 
Csharp :: how to get random numbers in c# 
Csharp :: c# string capital first letter extension method 
Csharp :: c# wpf keyinput DeadCharProcessed 
Csharp :: There is already a virtual axis named Horizontal registered. unity 
Csharp :: c# application hangs while running 
Csharp :: wpf fixed size window 
Csharp :: check if ienumerable is empty c# 
Csharp :: minheap c# 
Csharp :: Unity C# make object face away 
Csharp :: socket would block error c# 
Csharp :: unity cinemachine lock camera axis 
Csharp :: Oculus Unity add haptics 
Csharp :: monogame fullscreen 
ADD CONTENT
Topic
Content
Source link
Name
3+4 =