Archive 17/01/2023.

How to register subsystems in scriptEngine?

Dave82

Hi ! What’s the proper way of registering a custom subsytem in the angelscript context ? And if it registered how can i retreive it in the script ?

class someScript : ScriptObject
{
      void Start()
     {
          MyCustomSubsystem@ mcs = // How to retreive it ?
     }
}

Also is there a way to register susbsytems or other Urho3D::Object as a member of ScriptObject so it can be accessed directly just like “cache” , “sound” and “scene” variables ?
Thanks !