Horje
how to turn components on and off in unity through code Code Example
how to turn components on and off in unity through code
//enable
GetComponent<Collider>().enabled = true;

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




Csharp

Related
c# find a wav file Code Example c# find a wav file Code Example
unity stop physics Code Example unity stop physics Code Example
unity change fixed timestep in code Code Example unity change fixed timestep in code Code Example
list array Code Example list array Code Example
c# windows service .net core Code Example c# windows service .net core Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
12