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