/// <summary>
 /// Tries to deserialize settings from a stream.
 /// </summary>
 /// <param name="reader">The reader to deserialize settings from.</param>
 /// <param name="settings">The deserialized settings.</param>
 /// <returns>True if the settings were successfully deserialized, otherwise false.</returns>
 public static bool TryDeserialize(BinaryReader reader, out WorldAnchorSpatialLocalizationSettings settings)
 {
     try
     {
         settings = new WorldAnchorSpatialLocalizationSettings
         {
             Mode           = (WorldAnchorLocalizationMode)reader.ReadByte(),
             AnchorId       = reader.ReadString(),
             AnchorPosition = reader.ReadVector3(),
             AnchorRotation = reader.ReadQuaternion()
         };
         return(true);
     }
     catch
     {
         settings = null;
         return(false);
     }
 }
 public LocalizationSession(WorldAnchorSpatialLocalizer localizer, WorldAnchorSpatialLocalizationSettings settings, IPeerConnection peerConnection) : base()
 {
     this.localizer      = localizer;
     this.settings       = settings;
     this.peerConnection = peerConnection;
 }
 public LocalizationSession(WorldAnchorSpatialLocalizer localizer, WorldAnchorSpatialLocalizationSettings settings)
 {
     this.localizer = localizer;
     this.settings  = settings;
 }