Horje
unity deactivate all colliders of a gameobject Code Example
unity deactivate all colliders of a gameobject
public void SetAllCollidersStatus (bool active) {
     foreach(Collider c in GetComponents<Collider> ()) {
         c.enabled = true; //Or false if you want to desactivate them all
     }
 }




Csharp

Related
c# how to exit program Code Example c# how to exit program Code Example
find the max number in an array c# Code Example find the max number in an array c# Code Example
c# textbox get focus Code Example c# textbox get focus Code Example
c# console beep sounds Code Example c# console beep sounds Code Example
c# calculate difference between two dates in days Code Example c# calculate difference between two dates in days Code Example

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