public ConvertToGameObject(StreamState stream, EntryData instanceData, SyncObjectInstance syncInstance, SyncObject syncObject) { Stream = stream; InstanceData = instanceData; SyncInstance = syncInstance; SyncObject = syncObject; }
public BuildGameObject(StreamState stream, EntryData instanceData, SyncObjectInstance syncInstance, SyncObject syncObject, Dictionary <StreamKey, Mesh> meshes, Dictionary <StreamKey, Material> materials) { Stream = stream; Instance = syncInstance; Object = syncObject; Meshes = meshes; Materials = materials; InstanceData = instanceData; }
public static SyncObjectBinding CreateInstance(Transform root, string source, SyncObjectInstance instance, IObjectCache objectCache) { var objectKey = new StreamKey(source, PersistentKey.GetKey <SyncObject>(instance.ObjectId)); var syncObject = objectCache.CreateInstance(objectKey); if (syncObject == null) { Debug.LogWarning("Unable to instantiate SyncObject '" + instance.ObjectId + "'"); return(null); } var gameObject = syncObject.gameObject; gameObject.name = instance.Name; gameObject.transform.parent = root; ImportersUtils.SetTransform(gameObject.transform, instance.Transform); ImportersUtils.SetMetadata(gameObject, instance.Metadata); return(syncObject); }
public StreamInstance(StreamKey key, SyncObjectInstance instance, SyncBoundingBox boundingBox) { this.key = key; this.instance = instance; this.boundingBox = boundingBox; }
public DownloadResult(StreamAsset streamAsset, SyncObjectInstance streamInstance, Exception exception) { this.streamAsset = streamAsset; this.streamInstance = streamInstance; this.exception = exception; }
static void SetReferencedSyncModelPath(SyncObjectInstance instance, SyncManifest manifest) { instance.ObjectId = new SyncId(GetSyncModelLocalPath <SyncObject>(instance.ObjectId.Value, manifest)); }