OnSharedSpatialAnchorsLoadCompleted
: UnityEvent< List< OVRSpatialAnchor >, OVRSpatialAnchor.OperationResult >
[Get][Set] |
This event will be triggered when the loading of a list of shared OVRSpatialAnchor(s) is completed.
Signature
UnityEvent<List<OVRSpatialAnchor>, OVRSpatialAnchor.OperationResult> OnSharedSpatialAnchorsLoadCompleted |
OnSpatialAnchorsShareCompleted
: UnityEvent< List< OVRSpatialAnchor >, OVRSpatialAnchor.OperationResult >
[Get][Set] |
This event will be triggered when the sharing of a list of OVRSpatialAnchor(s) is completed.
Signature
UnityEvent<List<OVRSpatialAnchor>, OVRSpatialAnchor.OperationResult> OnSpatialAnchorsShareCompleted |
InstantiateSpatialAnchor
(
prefab
, position
, rotation
)
|
Create and instantiate an OVRSpatialAnchor.
Signature
async new void InstantiateSpatialAnchor(GameObject prefab, Vector3 position, Quaternion rotation) Parameters position: Vector3
Initial position of instantiated GameObject.
rotation: Quaternion
Initial rotation of instantiated GameObject.
Returns async new void |
LoadAndInstantiateAnchors
(
prefab
, uuids
)
|
Loads and instantiates OVRSpatialAnchor(s) from a list of Guids.
Use OnSharedSpatialAnchorsLoadCompleted to be notified when the loading is completed.
Signature
new void LoadAndInstantiateAnchors(GameObject prefab, List< Guid > uuids) Parameters uuids: List< Guid >
A list of Guid(s) to load.
Returns new voidThrows ArgumentNullException
Throws when uuids is null.
ArgumentException
Throws when uuids list is empty.
|
ShareSpatialAnchors
(
anchors
, users
)
|
Shares a list of OVRSpatialAnchor(s) with a list of OVRSpaceUser(s).
Use OnSpatialAnchorsShareCompleted to be notified when the sharing is completed.
Use OnSpatialAnchorsShareCompleted to be notified when the sharing is completed.
Signature
void ShareSpatialAnchors(List< OVRSpatialAnchor > anchors, List< OVRSpaceUser > users) Parameters Returns voidThrows ArgumentNullException
Throws when anchors or users is null.
ArgumentException
Throws when anchors or users list is empty.
|