UnityEngine.Object.DestroyImmediate C# (CSharp) Method

DestroyImmediate() public static method

public static DestroyImmediate ( System obj ) : void
obj System
return void
		public static void DestroyImmediate(System.Object obj){}
		public static Object[] FindObjectsOfType(Type type){}

Same methods

Object::DestroyImmediate ( System obj, bool allowDestroyingAssets ) : void

Usage Example

コード例 #1
0
 void Update()
 {
     if (this.ignoreFirstFrame)
     {
         this.ignoreFirstFrame = false;
         this.UpdateColliders  = false;
     }
     else if (this.UpdateColliders)
     {
         foreach (RelCol rc in this.GetComponentsInChildren <RelCol>())
         {
             Obj.DestroyImmediate(rc.gameObject);
         }
         this.createEveryDetectors();
         this.UpdateColliders = false;
     }
 }
All Usage Examples Of UnityEngine.Object::DestroyImmediate