Subsystems can be created by simply just making a script that inherits from EngineSubsystem. This will span the same lifetime of the engine itself instead of being bound to the lifetime of a scene. Subsystems can be fetched by calling Engine.GetSubsystem<MySubsystemType>() in C# to get the subsystem. Validity is mostly guaranteed since this call is typesafe but it's always good to write a validity test to avoid crashes.
Subsystems can be created by simply just making a script that inherits from
EngineSubsystem
. This will span the same lifetime of the engine itself instead of being bound to the lifetime of a scene. Subsystems can be fetched by callingEngine.GetSubsystem<MySubsystemType>()
in C# to get the subsystem. Validity is mostly guaranteed since this call is typesafe but it's always good to write a validity test to avoid crashes.