Init(args)
Scripting Reference
List of all members | Static Public Member Functions
Sisus.Init.GameObjectExtensions Class Reference

Description

Extensions methods for GameObject that can be used to add components that implement one of the IArgs interfaces with the required dependencies passed to the clone's Init function.

Static Public Member Functions

static TComponent AddComponent< TComponent, TArgument > ([NotNull] this GameObject gameObject, TArgument argument)
 Adds a component of type TComponent to the gameObject and initializes the component using the provided argument . More...
 
static TComponent AddComponent< TComponent, TFirstArgument, TSecondArgument > ([NotNull] this GameObject gameObject, TFirstArgument firstArgument, TSecondArgument secondArgument)
 Adds a component of type TComponent to the gameObject and initializes the component using the provided arguments. More...
 
static TComponent AddComponent< TComponent, TFirstArgument, TSecondArgument, TThirdArgument > ([NotNull] this GameObject gameObject, TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument)
 Adds a component of type TComponent to the gameObject and initializes the component using the provided arguments. More...
 
static TComponent AddComponent< TComponent, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument > ([NotNull] this GameObject gameObject, TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument, TFourthArgument fourthArgument)
 Adds a component of type TComponent to the gameObject and initializes the component using the provided arguments. More...
 
static TComponent AddComponent< TComponent, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument > ([NotNull] this GameObject gameObject, TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument, TFourthArgument fourthArgument, TFifthArgument fifthArgument)
 Adds a component of type TComponent to the gameObject and initializes the component using the provided arguments. More...
 
static void AddComponent< TComponent, TArgument > ([NotNull] this GameObject gameObject, out TComponent component, TArgument argument)
 Adds a component of type TComponent to the gameObject and initializes the component using the provided argument. More...
 
static void AddComponent< TComponent, TFirstArgument, TSecondArgument > ([NotNull] this GameObject gameObject, out TComponent component, TFirstArgument firstArgument, TSecondArgument secondArgument)
 Adds a component of type TComponent to the gameObject and initializes the component using the provided arguments. More...
 
static void AddComponent< TComponent, TFirstArgument, TSecondArgument, TThirdArgument > ([NotNull] this GameObject gameObject, out TComponent component, TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument)
 Adds a component of type TComponent to the gameObject and initializes the component using the provided arguments. More...
 
static void AddComponent< TComponent, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument > ([NotNull] this GameObject gameObject, out TComponent component, TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument, TFourthArgument fourthArgument)
 Adds a component of type TComponent to the gameObject and initializes the component using the provided arguments. More...
 
static void AddComponent< TComponent, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument > ([NotNull] this GameObject gameObject, out TComponent component, TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument, TFourthArgument fourthArgument, TFifthArgument fifthArgument)
 Adds a component of type TComponent to the gameObject and initializes the component using the provided arguments. More...
 
static T Get< T > ([NotNull] this GameObject gameObject)
 Returns the object of Type T if the game object has one attached, null if it doesn't. More...