HolographicSpace.CameraRemoved 事件

定义

从当前 HolographicSpace 中删除 HolographicCamera 时发生。

// Register
event_token CameraRemoved(TypedEventHandler<HolographicSpace, HolographicSpaceCameraRemovedEventArgs const&> const& handler) const;

// Revoke with event_token
void CameraRemoved(event_token const* cookie) const;

// Revoke with event_revoker
HolographicSpace::CameraRemoved_revoker CameraRemoved(auto_revoke_t, TypedEventHandler<HolographicSpace, HolographicSpaceCameraRemovedEventArgs const&> const& handler) const;
public event TypedEventHandler<HolographicSpace,HolographicSpaceCameraRemovedEventArgs> CameraRemoved;
function onCameraRemoved(eventArgs) { /* Your code */ }
holographicSpace.addEventListener("cameraremoved", onCameraRemoved);
holographicSpace.removeEventListener("cameraremoved", onCameraRemoved);
- or -
holographicSpace.oncameraremoved = onCameraRemoved;
Public Custom Event CameraRemoved As TypedEventHandler(Of HolographicSpace, HolographicSpaceCameraRemovedEventArgs) 

事件类型

注解

应用可以使用此事件来拆解在 CameraAdded 期间可能设置的任何每相机资源。

从此事件后的下一帧开始,系统将不再要求应用呈现到此相机。

如果进行了延迟,并且已在设备上指定了D3D11_CREATE_DEVICE_SINGLETHREADED标志,请确保显式继续在单个 Direct3D 线程上分拆的任何工作,以避免未定义的行为。

适用于