API reference

UnityObjectExtensions Class

Static Member Functions

Properly determines whether to use DestroyImmediate or Destroy dependent on the current state of the Editor.
Attempts to obtain a component and adds it if it does not already exist