Init(args)
Scripting Reference
Loading...
Searching...
No Matches
Sisus.Init.IWrapper Interface Reference

Description

Represents a Object that acts as a simple wrapper for a plain old class object of type TWrapped .

Base interface of IWrapper<TWrapped>.

Inheritance diagram for Sisus.Init.IWrapper:
Sisus.Init.ICoroutineRunner Sisus.Init.IWrapper< TWrapped > Sisus.Init.Wrapper Sisus.Init.ScriptableWrapper< TWrapped > Sisus.Init.Wrapper< TWrapped > Sisus.Init.Wrapper< TWrapped >

Public Member Functions

int GetInstanceID ()
 Returns the instance id of the object.
 
bool CompareTag (string tag)
 Returns true if the wrapper is attached to a GameObject that has the given tag; otherwise, false.
 
Find< T > ()
 Gets a reference to an object of type T found on the GameObject the wrapper is attached to.
 
T[] FindAll< T > ()
 Gets references to all objects of type T found on the GameObject the wrapper is attached to.
 
FindInChildren< T > ()
 Gets a reference to an object of type T found on the GameObject the wrapper is attached to, or any of its children.
 
T[] FindAllInChildren< T > ()
 Gets references to all objects of type T found on the GameObject the wrapper is attached to, or any of its children.
 
FindInParents< T > ()
 Gets a reference to an object of type T found on the GameObject the wrapper is attached to, or any of its parents.
 
T[] FindAllInParents< T > ()
 Gets references to all objects of type T found on the GameObject the wrapper is attached to, or any of its parents.
 
- Public Member Functions inherited from Sisus.Init.ICoroutineRunner
Coroutine StartCoroutine (IEnumerator coroutine)
 Starts the provided coroutine .
 
void StopCoroutine (IEnumerator coroutine)
 Stops the provided coroutine .
 
void StopCoroutine (Coroutine coroutine)
 Stops the provided coroutine .
 
void StopAllCoroutines ()
 Stops all coroutine coroutines that are currently running on this object, if any.
 

Properties

object WrappedObject [get]
 The plain old class object wrapped by this UnityEngine.Object.
 
GameObject gameObject [get]
 The GameObject this wrapper is attached to, if any.
 
MonoBehaviour AsMonoBehaviour [get]
 This wrapper as a MonoBehaviour, or null if the wrapper class does not derive from MonoBehaviour.
 
Object AsObject [get]
 This wrapper as an Object.
 
HideFlags hideFlags [get, set]
 Should the object be hidden, saved with the Scene or modifiable by the user?
 
string name [get, set]
 The name of the object.
 
bool enabled [get]
 Gets a value indicating whether the wrapper is enabled.
 
bool isActiveAndEnabled [get]
 Gets a value indicating whether the wrapper is enabled and not attached to an inactive

See also
GameObject

.