我想在我的Oculus Quest项目中获得"Raycast Hit UI elements“。所以我使用了Oculus Intergration的OVRRaycaster组件。但是我找不到任何关于GetRaycastHitData的方法。
/// <summary>
/// For the given ray, find graphics on this canvas which it intersects and are not blocked by other
/// world objects
/// </summary>
[NonSerialized]
private List<RaycastHit> m_RaycastResults = new List<RaycastHit>();我在OVRRaycaster.cs中找到了m_RaycastResults,但无法访问。如何在Oculus Quest Project中获取RaycastHit对象或当前的RaycastHit对象?我是否应该创建新的Ray方法?
发布于 2021-08-21 17:50:35
我的建议是通过完全跳过Oculus集成资产来避免OVR组件,而是将您的项目基于OpenXR API。原因很简单:
https://stackoverflow.com/questions/67768957
复制相似问题