XRPassthroughFeature
此 OpenXRInteractionFeature
用于在 OpenXR 运行时配置 XR_ANDROID_composition_layer_passthrough_mesh
和 XR_ANDROID_passthrough_camera_state
扩展程序,并为 OpenXR 平台提供透视几何图形功能。
使用 Passthrough 层类型 的 Unity.XR.CompositionLayers.CompositionLayer
以在运行时访问透视遮罩。注意:需要一个有效的 MeshFilter.mesh
来配置层几何图形。
摘要
继承
继承自:OpenXRFeature
公共属性 |
|
---|---|
ExtensionStrings = "XR_ANDROID_composition_layer_passthrough_mesh " + "XR_ANDROID_passthrough_camera_state"
|
const string
OpenXR 扩展程序字符串。
|
FeatureId = "com.google.xr.extensions.passthrough_composition_layer"
|
const string
功能 ID 字符串。
|
UiName = "Android XR (Extensions): Passthrough Composition Layer"
|
const string
该 UI 名称显示在 XR 插件管理面板上,可帮助用户了解验证错误和预期修复。
|
公共静态属性 |
|
---|---|
IsExensionEnabled => _extensionEnabled
|
bool
获取所需的 OpenXR 扩展程序是否已启用。
|
公共静态函数 |
|
---|---|
GetState()
|
获取透视摄像机的状态。
|
公共属性
ExtensionStrings
const string ExtensionStrings = "XR_ANDROID_composition_layer_passthrough_mesh " + "XR_ANDROID_passthrough_camera_state"
OpenXR 扩展程序字符串。
用于检查此扩展程序是否可用或已启用。
FeatureId
const string FeatureId = "com.google.xr.extensions.passthrough_composition_layer"
功能 ID 字符串。
UiName
const string UiName = "Android XR (Extensions): Passthrough Composition Layer"
该 UI 名称显示在 XR 插件管理面板上,可帮助用户了解验证错误和预期修复。
公共静态属性
IsExensionEnabled
bool IsExensionEnabled => _extensionEnabled
获取所需的 OpenXR 扩展程序是否已启用。
当 OpenXR 运行时正在等待时,它会返回 null
。否则,它会指示 XR_ANDROID_composition_layer_passthrough_mesh
扩展程序是否已启用。