struct in UnityEngine.Experimental.XR
切换到手册一个结构,用于描述表示真实世界表面的有界平面。
与无限的 Plane 不同,BoundedPlane 具有大小和更详细的形状。 BoundedPlane 可能随帧发生更改(请参阅 XRPlaneSubsystem.PlaneUpdated)。通常,这 意味着当前对平面的了解已经改变,而不是对实际几何形状。这可能 发生在设备探索物理空间并能够感知更多细节时。
Alignment | 平面的对齐方式,例如水平或垂直。 |
Center | 设备空间中平面的中心点。 |
Height | 平面的当前高度。 |
Id | 平面的会话唯一标识符。 |
Normal | 设备空间中平面的法向矢量。 |
Plane | 返回与此 BoundedPlane 关联的无限 Plane。 |
Pose | 设备空间中平面的姿势。 |
Size | 平面的当前大小。 |
SubsumedById | 包含此平面的 BoundedPlane 的会话唯一标识符。 |
Width | 平面的当前宽度。 |
GetCorners | 在设备空间中输出四个点,表示平面的四个角。这些角按顺时针排序。 |
TryGetBoundary | 尝试检索设备空间中描述当前平面边界的位置列表。 |
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.