ITrackableCamera Interface
Opt-in contract for cameras that need to clean up their registration with ICameraManager when their DI scope is torn down. The built-in Camera2D implements this. Custom ICamera implementations that want automatic unregistration should implement this interface.
public interface ITrackableCamera
Derived
↳ Camera2D
| Methods | |
|---|---|
| TrackRegistration(ICameraManager, string) | Records the cameraManager and key this camera was registered under so it can unregister itself on disposal. Called automatically by RegisterCamera(string, ICamera) when the camera implements this interface. |