void OnDestroy() { if (mReconstructionBehaviour) { mReconstructionBehaviour.UnregisterInitializedCallback(OnInitialized); mReconstructionBehaviour.UnregisterPropCreatedCallback(OnPropCreated); mReconstructionBehaviour.UnregisterSurfaceCreatedCallback(OnSurfaceCreated); } }