API reference
API reference
Select your platform
No SDKs available
No versions available

IOVRAnchorComponent Interface

Interface shared by all OVRAnchor components.
For more information about the anchor-component model, see Spatial Anchor Overview.

Properties

IsEnabled : bool
[Get]
True if this component is enabled and no change to its enabled status is pending.
Signature
bool IsEnabled
IsNull : bool
[Get]
Whether this object represents a valid anchor component.
Signature
bool IsNull

Methods

SetEnabledAsync ( enable , timeout )
Sets the enabled status of this component.
A component must be enabled to access its data.
Signature
OVRTask< bool > SetEnabledAsync(bool enable, double timeout=0)
Parameters
enable: bool  The desired state of the component.
timeout: double  The timeout, in seconds, for the operation. Use zero to indicate an infinite timeout.
Returns
OVRTask< bool >  Returns an OVRTask<bool> whose result indicates the result of the operation.