Anchor
: OVRAnchor
[Get] | |
IsTracked
: bool
[Get] |
Indicates whether this anchor is tracked by the system.
Signature
bool IsTracked |
Space
: OVRSpace
[Get] |
The runtime handle of this scene anchor.
Signature
OVRSpace Space |
Uuid
: Guid
[Get] |
The universally unique identifier for this scene anchor.
Signature
Guid Uuid |
Initialize
(
anchor
)
| |
InitializeFrom
(
other
)
|
Initializes this scene anchor from an existing scene anchor.
Signature
void InitializeFrom(OVRSceneAnchor other) Parameters Returns voidThrows ArgumentNullException
Thrown if other is null.
InvalidOperationException
Thrown if this OVRSceneAnchor is already associated with a scene anchor.
|
GetSceneAnchors
(
anchors
)
|
Get the list of all scene anchors that the OVRSceneManager created.
Anchor components such as OVRSceneRoom, OVRScenePlane, and OVRSceneVolume all have a OVRSceneAnchor component, so this method should be used to find those sibling components.
Signature
static void GetSceneAnchors(List< OVRSceneAnchor > anchors) Parameters anchors: List< OVRSceneAnchor >
A list of OVRSceneAnchors to populate. Any existing elements in the list will be removed.
Returns voidThrows ArgumentNullException
Thrown if anchors is null.
|
GetSceneAnchorsOfType< T >
(
anchors
)
|
Get the list of all scene anchors filtered by type.
Anchor components such as OVRSceneRoom, OVRScenePlane, and OVRSceneVolume all have a OVRSceneAnchor component, so this method should be used to find those sibling components.
This method traverses all OVRSceneAnchor instantiated by the OVRSceneManager and filters them based on whether they have the given component.
Signature
static void GetSceneAnchorsOfType< T >(List< T > anchors) Parameters anchors: List< T >
A list of components of type T to populate. Any existing elements in the list will be removed.
Returns voidThrows ArgumentNullException
Thrown if anchors is null.
|