static void | DestroySafely ( this Object unityObject ) Properly determines whether to use DestroyImmediate or Destroy dependent on the current state of the Editor. |
static T | GetOrAddComponent< T > ( this GameObject unityObject ) Attempts to obtain a component and adds it if it does not already exist |
static void Meta.WitAi.UnityObjectExtensions.DestroySafely ( this Object unityObject ) |
---|
Properly determines whether to use DestroyImmediate or Destroy dependent on the current state of the Editor. |
static T Meta.WitAi.UnityObjectExtensions.GetOrAddComponent< T > ( this GameObject unityObject ) |
---|
Attempts to obtain a component and adds it if it does not already exist |