OpenXRFbSpatialEntityBatch

Inherits: RefCounted

Used to batch save or share spatial entities.

Description

Used to batch save or share a collection of OpenXRFbSpatialEntitys in a single operation.

Properties

OpenXRFbSpatialEntity[]

entities

[]

Methods

OpenXRFbSpatialEntityBatch

create_batch ( OpenXRFbSpatialEntity[] entities ) static

void

save_to_storage ( StorageLocation location )

void

share_with_users ( OpenXRFbSpatialEntityUser[] users )


Signals

openxr_fb_spatial_entity_batch_saved ( bool succeeded, int location )

Emitted when the save operation has completed. See save_to_storage.


openxr_fb_spatial_entity_batch_shared ( bool succeeded )

Emitted when the share operation has completed. See share_with_users.


Property Descriptions

OpenXRFbSpatialEntity[] entities = []

The spatial entities in this batch.


Method Descriptions

OpenXRFbSpatialEntityBatch create_batch ( OpenXRFbSpatialEntity[] entities ) static

Create a batch of OpenXRFbSpatialEntity objects.


void save_to_storage ( StorageLocation location )

Saves all the spatial entities in this batch to the given storage location as a single operation.

This is an asynchronous operation - the openxr_fb_spatial_entity_batch_saved signal will be emitted when completed with an argument indicating if it was successful or not.


void share_with_users ( OpenXRFbSpatialEntityUser[] users )

Shares all the spatial entities in this batch with the given users in a single operation.

This is an asynchronous operation - the openxr_fb_spatial_entity_batch_shared signal will be emitted when completed with an argument indicating if it was successful or not.