AR Design
UBC EML collab with UBC SALA - visualizing IoT data in AR
SyncRoot.cs
Go to the documentation of this file.
1 // Copyright (c) Microsoft Corporation. All rights reserved.
2 // Licensed under the MIT License. See LICENSE in the project root for license information.
3 
6 
7 namespace HoloToolkit.Sharing
8 {
12  public class SyncRoot : SyncObject
13  {
17  [SyncData]
19 
24  public SyncRoot(ObjectElement rootElement)
25  {
26  Element = rootElement;
27  FieldName = Element.GetName().GetString();
28  InitializeSyncSettings();
29  InitializeDataModel();
30  }
31 
32  private void InitializeSyncSettings()
33  {
35  }
36 
40  private void InitializeDataModel()
41  {
42  InstantiatedPrefabs.InitializeLocal(Element);
43  }
44  }
45 }
SyncArray< SyncSpawnedObject > InstantiatedPrefabs
Children of the root.
Definition: SyncRoot.cs:18
virtual XString GetName()
Definition: Element.cs:53
Collection of sharing sync settings, used by the HoloToolkit Sharing sync system to figure out which ...
Definition: SyncSettings.cs:16
SyncRoot(ObjectElement rootElement)
Constructor.
Definition: SyncRoot.cs:24
The SyncObject class is a container object that can hold multiple SyncPrimitives. ...
Definition: SyncObject.cs:21
Root of the synchronization data model used by this application.
Definition: SyncRoot.cs:12