![]() |
Init(args)
Scripting Reference
|
Represents an Object that acts as a simple wrapper for a plain old class object of type TWrapped .
Represents a Object that acts as a simple wrapper for a plain old class object of type TWrapped .
An instance of a MonoBehaviour class that implements this interface can be added to a GameObject using the GameObject.AddWrapped function with the wrapped plain old class object injected to the added instance's Init function.
TWrapped | Type of the wrapped plain old class object. |
Base interface of IWrapper<TWrapped>.
Properties | |
new TWrapped | WrappedObject [get] |
The plain old class object wrapped by this UnityEngine.Object. More... | |
object | WrappedObject [get] |
The plain old class object wrapped by this UnityEngine.Object. More... | |
GameObject | gameObject [get] |
The GameObject this wrapper is attached to, if any. More... | |
MonoBehaviour | AsMonoBehaviour [get] |
This wrapper as a MonoBehaviour, or null if the wrapper class does not derive from MonoBehaviour. More... | |
Object | AsObject [get] |
This wrapper as an Object. More... | |
Additional Inherited Members | |
![]() | |
void | Init (TArgument argument) |
Initializes the object with an object that it depends on. More... | |
void | Init (TFirstArgument firstArgument, TSecondArgument secondArgument) |
Initializes the object with two objects that it depends on. More... | |
void | Init (TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument) |
Initializes the object with three objects that it depends on. More... | |
void | Init (TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument, TFourthArgument fourthArgument) |
Initializes the object with four objects that it depends on. More... | |
void | Init (TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument, TFourthArgument fourthArgument, TFifthArgument fifthArgument) |
Initializes the object with five objects that it depends on. More... | |