Init(args)
Scripting Reference
List of all members | Properties
Sisus.Init.IWrapper< TWrapped > Interface Template Reference

Description

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.

Template Parameters
TWrappedType of the wrapped plain old class object.

Base interface of IWrapper<TWrapped>.

Inheritance diagram for Sisus.Init.IWrapper< TWrapped >:
Sisus.Init.IInitializable< TWrapped > Sisus.Init.ScriptableWrapper< TWrapped > Sisus.Init.Wrapper< 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

- Public Member Functions inherited from Sisus.Init.IInitializable< TWrapped >
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...