|
static T | AddComponentInitialized< T > (this GameObject go, InitializationContext initializingContext=InitializationContext.Programmatically, JSONObject json=null, List< PropertyModifier > propertyModifiers=null, bool isFallbackValues=false, bool initialize=true, bool registerCreatedUndo=false) |
| A wrapper method to GameObject.AddComponent<T> which automatically initializes the component, if it is an IDisposable, and optionaly registers a create Undo if in Editor.
|
|
static Component | AddComponentInitialized (this GameObject go, Type type, InitializationContext initializingContext=InitializationContext.Programmatically, JSONObject json=null, List< PropertyModifier > propertyModifiers=null, bool isFallbackValues=false, bool initialize=true, bool registerCreatedUndo=false) |
| A wrapper method to GameObject.AddComponent(Type) which automatically initializes the component, if it is an IDisposable, and optionaly registers a create Undo if in Editor.
|
|
static T | GetComponentInitialized< T > (this GameObject go, InitializationContext initializingContext=InitializationContext.Programmatically, JSONObject json=null, List< PropertyModifier > propertyModifiers=null, bool isFallbackValues=false) |
| A wrapper method to GameObject.GetComponent<T> which returns an initialized Component, if it is an IDisposable, of the requested type.
|
|
static Component | GetComponentInitialized (this GameObject go, Type type, InitializationContext initializingContext=InitializationContext.Programmatically, JSONObject json=null, List< PropertyModifier > propertyModifiers=null, bool isFallbackValues=false) |
| A wrapper method to GameObject.GetComponent(Type) which returns an initialized Component, if it is an IDisposable, of the requested type.
|
|
static T | GetComponentInParentInitialized< T > (this GameObject go, bool includeInactive, InitializationContext initializingContext=InitializationContext.Programmatically, JSONObject json=null, List< PropertyModifier > propertyModifiers=null, bool isFallbackValues=false) |
| A wrapper method to GameObject.GetComponentInParent<T> which returns an initialized Component found in a parent, if it is an IDisposable, of the requested type.
|
|
static Component | GetComponentInParentInitialized (this GameObject go, Type type, bool includeInactive, InitializationContext initializingContext=InitializationContext.Programmatically, JSONObject json=null, List< PropertyModifier > propertyModifiers=null, bool isFallbackValues=false) |
| A wrapper method to GameObject.GetComponentInParent(Type) which returns an initialized Component found in a parent(if it is an IDisposable) of the requested type.
|
|
static IDisposable | GetObjectOrVisualComponent (this GameObject _, Component[] components) |
| Returns an DepictionEngine.Object or DepictionEngine.Visual component found in the GameObject.
|
|
static void | SetLayerRecursively (this GameObject go, int layer) |
|