手册
脚本 API
unity3d.com
Version:
2018.1
2021.1
2020.3
2020.2
2020.1
2019.4
2019.3
2019.2
2019.1
2018.4
2018.3
2018.2
2018.1
2017.4
2017.3
2017.2
2017.1
5.6
手册
脚本 API
语言:
中文
English
中文
日本語
Español
한국어
Русский
脚本 API
Version:
2018.1
2021.1
2020.3
2020.2
2020.1
2019.4
2019.3
2019.2
2019.1
2018.4
2018.3
2018.2
2018.1
2017.4
2017.3
2017.2
2017.1
5.6
Experimental
: this API is experimental and might be changed or removed in the future.
XRPlaneSubsystem
.TryGetPlane
切换到手册
public bool
TryGetPlane
(
Experimental.XR.TrackableId
planeId
, out
Experimental.XR.BoundedPlane
plane
);
参数
planeId
要获取的平面的唯一会话
TrackableId
。
plane
带有已提供的
planeId
的
BoundedPlane
返回
bool
如果存在带有
planeId
的
BoundedPlane
,则为 true,否则为 false。
描述
通过
TrackableId
获取一个
BoundedPlane