Init(args)
Scripting Reference
Loading...
Searching...
No Matches
Sisus.Init.AddComponentExtensions 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 component's Init function.

Static Public Member Functions

static TComponent AddComponent< TComponent, TArgument > ([DisallowNull] this GameObject gameObject, TArgument argument)
 Adds a component of type TComponent to the gameObject and initializes the component using the provided argument .
 
static TComponent AddComponent< TComponent, TFirstArgument, TSecondArgument > ([DisallowNull] this GameObject gameObject, TFirstArgument firstArgument, TSecondArgument secondArgument)
 Adds a component of type TComponent to the gameObject and initializes the component using the provided arguments.
 
static TComponent AddComponent< TComponent, TFirstArgument, TSecondArgument, TThirdArgument > ([DisallowNull] 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.
 
static TComponent AddComponent< TComponent, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument > ([DisallowNull] 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.
 
static TComponent AddComponent< TComponent, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument > ([DisallowNull] 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.
 
static TComponent AddComponent< TComponent, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument, TSixthArgument > ([DisallowNull] this GameObject gameObject, TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument, TFourthArgument fourthArgument, TFifthArgument fifthArgument, TSixthArgument sixthArgument)
 Adds a component of type TComponent to the gameObject and initializes the component using the provided arguments.
 
static TComponent AddComponent< TComponent, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument, TSixthArgument, TSeventhArgument > ([DisallowNull] this GameObject gameObject, TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument, TFourthArgument fourthArgument, TFifthArgument fifthArgument, TSixthArgument sixthArgument, TSeventhArgument seventhArgument)
 Adds a component of type TComponent to the gameObject and initializes the component using the provided arguments.
 
static TComponent AddComponent< TComponent, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument, TSixthArgument, TSeventhArgument, TEighthArgument > ([DisallowNull] this GameObject gameObject, TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument, TFourthArgument fourthArgument, TFifthArgument fifthArgument, TSixthArgument sixthArgument, TSeventhArgument seventhArgument, TEighthArgument eighthArgument)
 Adds a component of type TComponent to the gameObject and initializes the component using the provided arguments.
 
static TComponent AddComponent< TComponent, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument, TSixthArgument, TSeventhArgument, TEighthArgument, TNinthArgument > ([DisallowNull] this GameObject gameObject, TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument, TFourthArgument fourthArgument, TFifthArgument fifthArgument, TSixthArgument sixthArgument, TSeventhArgument seventhArgument, TEighthArgument eighthArgument, TNinthArgument ninthArgument)
 Adds a component of type TComponent to the gameObject and initializes the component using the provided arguments.
 
static TComponent AddComponent< TComponent, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument, TSixthArgument, TSeventhArgument, TEighthArgument, TNinthArgument, TTenthArgument > ([DisallowNull] this GameObject gameObject, TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument, TFourthArgument fourthArgument, TFifthArgument fifthArgument, TSixthArgument sixthArgument, TSeventhArgument seventhArgument, TEighthArgument eighthArgument, TNinthArgument ninthArgument, TTenthArgument tenthArgument)
 Adds a component of type TComponent to the gameObject and initializes the component using the provided arguments.
 
static TComponent AddComponent< TComponent, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument, TSixthArgument, TSeventhArgument, TEighthArgument, TNinthArgument, TTenthArgument, TEleventhArgument > ([DisallowNull] this GameObject gameObject, TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument, TFourthArgument fourthArgument, TFifthArgument fifthArgument, TSixthArgument sixthArgument, TSeventhArgument seventhArgument, TEighthArgument eighthArgument, TNinthArgument ninthArgument, TTenthArgument tenthArgument, TEleventhArgument eleventhArgument)
 Adds a component of type TComponent to the gameObject and initializes the component using the provided arguments.
 
static TComponent AddComponent< TComponent, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument, TSixthArgument, TSeventhArgument, TEighthArgument, TNinthArgument, TTenthArgument, TEleventhArgument, TTwelfthArgument > ([DisallowNull] this GameObject gameObject, TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument, TFourthArgument fourthArgument, TFifthArgument fifthArgument, TSixthArgument sixthArgument, TSeventhArgument seventhArgument, TEighthArgument eighthArgument, TNinthArgument ninthArgument, TTenthArgument tenthArgument, TEleventhArgument eleventhArgument, TTwelfthArgument twelfthArgument)
 Adds a component of type TComponent to the gameObject and initializes the component using the provided arguments.
 
static void AddComponent< TComponent, TArgument > ([DisallowNull] 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.
 
static void AddComponent< TComponent, TFirstArgument, TSecondArgument > ([DisallowNull] 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.
 
static void AddComponent< TComponent, TFirstArgument, TSecondArgument, TThirdArgument > ([DisallowNull] 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.
 
static void AddComponent< TComponent, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument > ([DisallowNull] 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.
 
static void AddComponent< TComponent, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument > ([DisallowNull] 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.
 
static void AddComponent< TComponent, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument, TSixthArgument > ([DisallowNull] this GameObject gameObject, out TComponent component, TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument, TFourthArgument fourthArgument, TFifthArgument fifthArgument, TSixthArgument sixthArgument)
 Adds a component of type TComponent to the gameObject and initializes the component using the provided arguments.
 
static void AddComponent< TComponent, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument, TSixthArgument, TSeventhArgument > ([DisallowNull] this GameObject gameObject, out TComponent component, TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument, TFourthArgument fourthArgument, TFifthArgument fifthArgument, TSixthArgument sixthArgument, TSeventhArgument seventhArgument)
 Adds a component of type TComponent to the gameObject and initializes the component using the provided arguments.
 
static void AddComponent< TComponent, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument, TSixthArgument, TSeventhArgument, TEighthArgument > ([DisallowNull] this GameObject gameObject, out TComponent component, TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument, TFourthArgument fourthArgument, TFifthArgument fifthArgument, TSixthArgument sixthArgument, TSeventhArgument seventhArgument, TEighthArgument eighthArgument)
 Adds a component of type TComponent to the gameObject and initializes the component using the provided arguments.
 
static void AddComponent< TComponent, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument, TSixthArgument, TSeventhArgument, TEighthArgument, TNinthArgument > ([DisallowNull] this GameObject gameObject, out TComponent component, TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument, TFourthArgument fourthArgument, TFifthArgument fifthArgument, TSixthArgument sixthArgument, TSeventhArgument seventhArgument, TEighthArgument eighthArgument, TNinthArgument ninthArgument)
 Adds a component of type TComponent to the gameObject and initializes the component using the provided arguments.
 
static void AddComponent< TComponent, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument, TSixthArgument, TSeventhArgument, TEighthArgument, TNinthArgument, TTenthArgument > ([DisallowNull] this GameObject gameObject, out TComponent component, TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument, TFourthArgument fourthArgument, TFifthArgument fifthArgument, TSixthArgument sixthArgument, TSeventhArgument seventhArgument, TEighthArgument eighthArgument, TNinthArgument ninthArgument, TTenthArgument tenthArgument)
 Adds a component of type TComponent to the gameObject and initializes the component using the provided arguments.
 
static void AddComponent< TComponent, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument, TSixthArgument, TSeventhArgument, TEighthArgument, TNinthArgument, TTenthArgument, TEleventhArgument > ([DisallowNull] this GameObject gameObject, out TComponent component, TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument, TFourthArgument fourthArgument, TFifthArgument fifthArgument, TSixthArgument sixthArgument, TSeventhArgument seventhArgument, TEighthArgument eighthArgument, TNinthArgument ninthArgument, TTenthArgument tenthArgument, TEleventhArgument eleventhArgument)
 Adds a component of type TComponent to the gameObject and initializes the component using the provided arguments.
 
static void AddComponent< TComponent, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument, TSixthArgument, TSeventhArgument, TEighthArgument, TNinthArgument, TTenthArgument, TEleventhArgument, TTwelfthArgument > ([DisallowNull] this GameObject gameObject, out TComponent component, TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument, TFourthArgument fourthArgument, TFifthArgument fifthArgument, TSixthArgument sixthArgument, TSeventhArgument seventhArgument, TEighthArgument eighthArgument, TNinthArgument ninthArgument, TTenthArgument tenthArgument, TEleventhArgument eleventhArgument, TTwelfthArgument twelfthArgument)
 Adds a component of type TComponent to the gameObject and initializes the component using the provided arguments.