AR Design
UBC EML collab with UBC SALA - visualizing IoT data in AR
DefaultSyncModelAccessor.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 
4 using UnityEngine;
6 
7 namespace HoloToolkit.Sharing
8 {
13  public class DefaultSyncModelAccessor : MonoBehaviour, ISyncModelAccessor
14  {
15  public SyncObject SyncModel { get; private set; }
16 
17  public void SetSyncModel(SyncObject syncObject)
18  {
19  SyncModel = syncObject;
20  }
21  }
22 }
Interface that allows a components of a game object access the shared data model set by a SpawnManage...
The SyncObject class is a container object that can hold multiple SyncPrimitives. ...
Definition: SyncObject.cs:21
void SetSyncModel(SyncObject syncObject)
Sets the synchronized data model to use for this object.
Default implementation of a MonoBehaviour that allows other components of a game object access the sh...