Init(args)
Scripting Reference
Namespaces | Classes | Enumerations | Functions
Sisus.Init Namespace Reference

Classes

struct  Any
 Represents a value of type T that can be assigned through Unity's inspector as well as serialized by its serializer. More...
 
class  InitOnResetAttribute
 When a component that derives from MonoBehaviour<> and has the InitOnResetAttribute is first added to a GameObject in the editor, or when the user hits the Reset button in the Inspector's context menu, the arguments accepted by the component are automatically gathered and passed to its IInitializable<>.Init function. More...
 
class  EditorCoroutine
 Represents a coroutine that has been started running in the editor. More...
 
class  EditorCoroutineRunner
 Class that can be used for starting and stopping coroutines in the editor even in edit mode. More...
 
class  InitArgumentsNotReceivedException
 The exception that is thrown when arguments have been provided for an object being initialized but it fails to receive them. More...
 
class  MissingInitArgumentsException
 The exception that is thrown when attempting to create an instance of an object that implements an IArgs<> interface without having provided the arguments that it requires. More...
 
class  GameObjectExtensions
 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. More...
 
class  GameObjectT1Extensions
 Extensions methods for initializing GameObject<TComponent> objects. More...
 
class  GameObjectT2Extensions
 Extensions methods for initializing GameObject<TFirstComponent, TSecondComponent> objects. More...
 
class  GameObjectT3Extensions
 Extensions methods for initializing GameObject<TFirstComponent, TSecondComponent, TThirdComponent> objects. More...
 
class  ObjectExtensions
 Extensions methods for Object that can be used to instantiate new copies Objects that implement one of the IArgs interfaces with the required dependencies passed to the clone's Init function. More...
 
class  SystemObjectExtensions
 Extensions methods for all objects that can be used to check that they exist in a way that handles Object.Destroy destroyed Objects properly. More...
 
struct  Components
 Represents a pair of components that exist on the same GameObject. More...
 
struct  GameObject
 Builder for creating a new GameObject with a component of type TComponent . More...
 
struct  GameObjectWithInit1Of3Done
 Builder for creating a new GameObject with three components. More...
 
struct  GameObjectWithInit2Of3Done
 Builder for creating a new GameObject with three components. More...
 
struct  UninitializedGameObject
 Builder for creating a new GameObject with two components. More...
 
interface  IInitializer
 Represents an object that can can specify the arguments used to initialize objects that implement one of the IInitializable<> interfaces. More...
 
class  Initializer
 A base class for a component that can can specify the argument used to initialize an object that implements IInitializable<TArgument>. More...
 
class  WrapperInitializer
 A base class for a component that can specify the argument used to initialize an object which then gets wrapped by a Wrapper<TWrapped> component. More...
 
interface  IArgs
 Represents an object which can receive an argument of type TArgument as part of its initialization process. More...
 
interface  IOneArgument
 Represents an object which can receive one argument as part of its initialization process. More...
 
interface  ITwoArguments
 Represents an object which can receive two arguments as part of its initialization process. More...
 
interface  IThreeArguments
 Represents an object which can receive three arguments as part of its initialization process. More...
 
interface  IFourArguments
 Represents an object which can receive four arguments as part of its initialization process. More...
 
interface  IFiveArguments
 Represents an object which can receive five arguments as part of its initialization process. More...
 
interface  IFirstArgument
 Represents an object which can receive at least one argument as part of its initialization process, with the first one being an object of type TFirstArgument . More...
 
interface  ISecondArgument
 Represents an object which can receive at least two arguments as part of its initialization process, with the second one being an object of type TSecondArgument . More...
 
interface  IThirdArgument
 Represents an object which can receive at least three arguments as part of its initialization process, with the third one being an object of type TThirdArgument . More...
 
interface  IFourthArgument
 Represents an object which can receive at least four arguments as part of its initialization process, with the fourth one being an object of type TFourthArgument . More...
 
interface  IFifthArgument
 Represents an object which can receive at least five arguments as part of its initialization process, with the fifth one being an object of type TFifthArgument . More...
 
interface  IAwake
 Defines a class that wants to receive a callback during the Awake event function of the MonoBehaviour that wraps it. More...
 
interface  IFixedUpdate
 Defines a class that can subscribe to receive a callback during the FixedUpdate event function. More...
 
interface  IInitializable
 Represents an object which can be initialized using an argument of type TArgument . More...
 
interface  ILateUpdate
 Defines a class that can subscribe to receive a callback during the LateUpdate event function. More...
 
interface  IOnDestroy
 Defines a class that wants to receive a callback during the OnDestroy event function of the MonoBehaviour that wraps it. More...
 
interface  IOnDisable
 Defines a class that wants to receive a callback during the OnDisable event function of the MonoBehaviour that wraps it. More...
 
interface  IOnEnable
 Defines a class that wants to receive a callback during the OnEnable event function of the MonoBehaviour that wraps it. More...
 
interface  IServiceProvider
 Represents a class responsible for providing service objects on request to any to any clients that need them. More...
 
interface  IStart
 Defines a class that wants to receive a callback during the Start event function of the MonoBehaviour that wraps it. More...
 
interface  IUpdate
 Defines a class that can subscribe to receive a callback during the Update event function. More...
 
interface  IValueProvider
 Represents an object that can provide a Value of type T on demand. More...
 
class  MonoBehaviour
 A base class for MonoBehaviours that can be instantiated or added to a GameObject with an argument passed to the Init function of the created instance. More...
 
class  Create
 Methods that can be used to instantiate new copies Objects that implement one of the IArgs interfaces with the required dependencies passed to the clone's Init function. More...
 
class  ScriptableObject
 A base class for ScriptableObjects that can be created or instantiated with an argument passed to the Init function of the created instance. More...
 
class  Service
 Class that can provide a shared instance of any class that has the ServiceAttribute on demand. More...
 
class  EditorServiceAttribute
 Classes that have the EditorServiceAttribute can provide services for one or more client objects in the editor in edit mode. More...
 
class  ServiceAttribute
 Classes that have the ServiceAttribute can provide services for one or more client objects. More...
 
class  ServiceProvider
 Class that can provide an instance of any class that has the ServiceAttribute on demand. More...
 
class  ServiceUtility
 Utility class responsible for providing information about services. More...
 
class  Updater
 Class responsible for broadcasting the IUpdate.Update, ILateUpdate.LateUpdate and IFixedUpdate.FixedUpdate events to subscribers during the corresponding Unity event functions. More...
 
class  Find
 Utility class for finding instances in the scene. More...
 
class  FlagsValues
 Helper class that lists all valid values that an int-backed bit field enumeration type can have. More...
 
class  InitArgs
 Utility class containing methods related to providing and retrieving arguments for objects that implement one of the IArgs interfaces such as MonoBehaviour<TArgument> and ScriptableObject<TArgument>. More...
 
interface  ICoroutineRunner
 Represents an object that can start and stop coroutines running. More...
 
interface  ICoroutines
 Represents an object that can start and stop coroutines. More...
 
class  ICoroutinesExtensions
 Extension methods for objects that implement ICoroutines. More...
 
interface  IWrapper
 Represents an Object that acts as a simple wrapper for a plain old class object of type TWrapped . More...
 
class  ScriptableWrapper
 A base class for ScriptableObjects that act as simple wrappers for plain old class objects. More...
 
class  Wrapper
 A base class for MonoBehaviours that act as simple wrappers for plain old class objects. More...
 

Enumerations

enum class  From
 Defines where to search when trying to automatically locate an argument for a class that implements an IArgs<> interface.

See also
InitOnResetAttribute
More...
 
enum class  First { Component }
 First.Component token can be used with a GameObjectT2Extensions.Init2<First> function to inform that the first added component should be used as one of the arguments when calling the second added component's Init function. More...
 
enum class  Second { Component }
 Second.Component token can be used with a GameObjectT2Extensions.Init1<Second> function to inform that the second added component should be used as one of the arguments when calling the first added component's Init function. More...
 
enum class  Third { Component }
 Third.Component token can be used with a GameObjectT3Extensions.Init1<Third> or GameObjectT3Extensions.Init2<Third> function to inform that the third added component should be used as one of the arguments when calling the first or second added component's Init function. More...
 
enum class  Context : byte
 Defines the initialization phase during which an object is attempting to retrieve arguments that have been provided for it. More...
 
enum class  Including {
  Children = _1 , Parents = _2 , Scene = _3 , Inactive = _4 ,
  ChildrenAndParents = Children | Parents , ChildrenAndParentsIncludingInactive = Children | Parents | Inactive , ParentsIncludingInactive = Children | Inactive , ChildrenIncludingInactive = Children | Inactive ,
  SceneIncludingInactive = Scene | Inactive
}
 Defines which additional GameObjects to include in search when finding objects attached to a GameObject or related GameObjects. More...
 

Functions

delegate void ServiceChangedHandler< TDefiningClassOrInterface > ([CanBeNull] TDefiningClassOrInterface oldInstance, [CanBeNull] TDefiningClassOrInterface newInstance)
 Represents a method that will handle the event of the shared instance of service of type TDefiningClassOrInterface having been changed to another one. More...