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

SerializationHelpers Class

This contains helpers to serialize/deserialze Scene data to/from JSON.

Member Enumerations

Enumeration CoordinateSystem

Defines the coordinate systems that can be used for serialization.
Unity
No description available
Unreal
No description available

Public Statics

static const float UnrealWorldToMeters[Get]

Static Member Functions

Serializes the scene data into a JSON string.
The scene data includes rooms, anchors, and their associated properties. The method allows for the specification of the coordinate system (Unity or Unreal) and whether to include the global mesh data.
Parameters
coordinateSystem
The coordinate system to use for the serialization (Unity or Unreal).
includeGlobalMesh
A boolean indicating whether to include the global mesh data in the serialization. Default is true.
rooms
A list of rooms to serialize, if this is null then all rooms will be serialized.
Returns
A JSON string representing the serialized scene data.
Deserializes a JSON string into a list of MRUKRoom objects.
Parameters
json
The JSON string representing the serialized scene data.
Returns
A list of MRUKRoom objects representing the deserialized scene data.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon