Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

how to turn components on and off in unity through code

//enable
GetComponent<Collider>().enabled = true;

//disabled
GetComponent<Collider>().disabled = false;
Comment

PREVIOUS NEXT
Code Example
Csharp :: convert object to iqueryable in c# 
Csharp :: serial number unity pro 
Csharp :: check if mouse is in frame unity 
Csharp :: list sort c# 
Csharp :: unity set parent canvas 
Csharp :: using in c# 
Csharp :: sum the digits in c# 
Csharp :: unity pause coroutine 
Csharp :: mysqldump - date 
Csharp :: c# add list to list 
Csharp :: how to convert timestamp to datetime c# 
Csharp :: cast from object to generic type c# 
Csharp :: print pdf in c# 
Csharp :: how to change all values in dictionary c# 
Csharp :: convert path to uri c# 
Csharp :: get key in dictionary c# 
Csharp :: c# static 
Csharp :: check if two date ranges overlap c# 
Csharp :: wpf relativesource 
Csharp :: nunit cleanup after all tests 
Csharp :: c# list keyvaluepair update value 
Csharp :: automapper c# initialize error 
Csharp :: c# substring find word 
Csharp :: how to pause a console.writeline in C# 
Csharp :: c# integer part of float 
Csharp :: c# Sum of all the factors of a number 
Csharp :: c# get file author 
Csharp :: recorrer list c# 
Csharp :: 2d array rows and columns in c# 
Csharp :: c# httpclient post no content 
ADD CONTENT
Topic
Content
Source link
Name
8+8 =