Class XRAnchor
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
NOTE
Experimental The
XRAnchor interface creates anchors which keep track of the pose that is fixed relative to the real world. With anchors, you can specify poses in the world that need to be updated to correctly reflect the evolving understanding of the world, such that the poses remain aligned with the same place in the physical world. That helps to build an illusion that the placed objects are really present in the user's environment.
[Value("XRAnchor")]
public class XRAnchor
- Inheritance
-
XRAnchor
- Inherited Members
-
Constructors
XRAnchor()
Properties
AnchorSpace
NOTE
Experimental The read-only
anchorSpace property of the
XRAnchor interface returns an
XRSpace object to locate the anchor relative to other
XRSpace objects. It can be passed to
GetPose(XRSpace, XRSpace) subsequently.
[Value("anchorSpace")]
public XRSpace AnchorSpace { get; }
Property Value
- XRSpace
An XRSpace object.
Methods
Delete()
NOTE
Experimental The
delete() method of the
XRAnchor interface removes an anchor. This can be useful when an application is no longer interested in receiving updates to an anchor.
[Value("delete")]
public GlobalObject.Undefined Delete()
Returns
- GlobalObject.Undefined
None (GlobalObject.Undefined).
RequestPersistentHandle()
[Value("requestPersistentHandle")]
public Task<string> RequestPersistentHandle()
Returns
- Task<string>