A base class for ScriptableObjects that act as simple wrappers for plain old class objects.
A class wrapped by the ScriptableWrapper<> can be loaded from Resources using the Find.Resource<TWrapped> function.
Optionally the wrapped class can receive callbacks during select unity event functions from the wrapper by implementing one or more of the following interfaces:
- Template Parameters
-
TWrapped | Type of the plain old class object wrapped by this scriptable object. |
|
virtual void | Reset () |
| Reset state to default values. More...
|
|
virtual void | Awake () |
| Awake is called when the script instance is being loaded and handles calling the Init function with the TWrapped argument. More...
|
|
virtual void | OnEnable () |
| This function is called when the object becomes enabled and active. More...
|
|
virtual void | OnDisable () |
| This function is called when the scriptable object goes out of scope. More...
|
|
virtual void | OnDestroy () |
| The OnDestroy even function is called when this ScriptableWrapper is destroyed. More...
|
|
abstract void | Init (TArgument argument) |
| Provides the ScriptableObject with the object that it depends on. More...
|
|
virtual void | OnReset () |
| Reset state to default values. More...
|
|
virtual void | OnAwake () |
| OnAwake is called when the script instance is being loaded during the Awake event after the Init function has finished. This happens as the game is launched and is similar to MonoBehavior.Awake. More...
|
|
abstract void | Init (TFirstArgument firstArgument, TSecondArgument secondArgument) |
| Provides the ScriptableObject with the objects that it depends on. More...
|
|
virtual void | OnReset () |
| Reset state to default values. More...
|
|
virtual void | OnAwake () |
| OnAwake is called when the script instance is being loaded during the Awake event after the Init function has finished. This happens as the game is launched and is similar to MonoBehavior.Awake. More...
|
|
abstract void | Init (TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument) |
| Provides the ScriptableObject with the objects that it depends on. More...
|
|
virtual void | OnReset () |
| Reset state to default values. More...
|
|
virtual void | OnAwake () |
| OnAwake is called when the script instance is being loaded during the Awake event after the Init function has finished. This happens as the game is launched and is similar to MonoBehavior.Awake. More...
|
|
abstract void | Init (TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument, TFourthArgument fourthArgument) |
| Provides the ScriptableObject with the objects that it depends on. More...
|
|
virtual void | OnReset () |
| Reset state to default values. More...
|
|
virtual void | OnAwake () |
| OnAwake is called when the script instance is being loaded during the Awake event after the Init function has finished. This happens as the game is launched and is similar to MonoBehavior.Awake. More...
|
|
abstract void | Init (TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument, TFourthArgument fourthArgument, TFifthArgument fifthArgument) |
| Provides the ScriptableObject with the objects that it depends on. More...
|
|
virtual void | OnReset () |
| Reset state to default values. More...
|
|
virtual void | OnAwake () |
| OnAwake is called when the script instance is being loaded during the Awake event after the Init function has finished. This happens as the game is launched and is similar to MonoBehavior.Awake. More...
|
|
|
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...
|
|
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...
|
|
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...
|
|
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...
|
|
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...
|
|