How can I tell when my devices are being destroyed due to the app closing down? Is there something I can check on the core interface? I’m registering/unregistering devices as part of the communication between my application and World machine, and I need to know when a device is actually being deleted from a world machine graph vs. being destroyed because the application is closing.
I’ve noticed that when loading a device, the device id in the constructor will differ from the device id after loading - specifically it seems the id gets loaded by my super class’ load function. This is somewhat annoying because I am doing the register/unregister of my devices in the constructor/destructor of my device - could I solve this by moving the register to my activate function? Is Activate guaranteed to be called whenever a new device is created, and upon load of an existing device?