UnityEngine.Object.Destroy C# (CSharp) 메소드

Destroy() 공개 정적인 메소드

public static Destroy ( System obj ) : void
obj System
리턴 void
		public static void Destroy(System.Object obj){}
		public static void DestroyImmediate(System.Object obj, bool allowDestroyingAssets){}

Same methods

Object::Destroy ( System obj, float t ) : void

Usage Example

예제 #1
0
    public static T DestroySelfGracefully <T>(this T selfObj) where T : Object
    {
        if (selfObj)
        {
            Object.Destroy(selfObj);
        }

        return(selfObj);
    }
All Usage Examples Of UnityEngine.Object::Destroy