Class SubsystemLifecycleManager<TSubsystem, TSubsystemDescriptor, TProvider>
A base class for subsystems whose lifetime is managed by a MonoBehaviour
.
Inheritance
SubsystemLifecycleManager<TSubsystem, TSubsystemDescriptor, TProvider>
Inherited Members
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: UnityEngine.XR.ARFoundation
Assembly: solution.dll
Syntax
public class SubsystemLifecycleManager<TSubsystem, TSubsystemDescriptor, TProvider> : MonoBehaviour where TSubsystem : SubsystemWithProvider<TSubsystem, TSubsystemDescriptor, TProvider>, new() where TSubsystemDescriptor : SubsystemDescriptorWithProvider<TSubsystem, TProvider> where TProvider : SubsystemProvider<TSubsystem>
Type Parameters
Name | Description |
---|---|
TSubsystem | The Subsystem which provides this manager data. |
TSubsystemDescriptor | The |
TProvider | The provider associated with this subsystem. |
Properties
Name | Description |
---|---|
descriptor | The descriptor for the subsystem. |
subsystem | Get the |
Methods
Name | Description |
---|---|
EnsureSubsystemInstanceSet() | Called by derived classes to initialize the subsystem is initialized before use |
GetActiveSubsystemInstance() | Returns the active |
OnAfterStart() | Invoked after calling Start on it the Subsystem.
The subsystem is not |
OnBeforeStart() | Invoked after creating the subsystem and before calling Start on it.
The subsystem is not |
OnDestroy() | Destroys the |
OnDisable() | Stops the |
OnEnable() | Creates the |