Class SyncPrefabImporter
Inheritance
System.Object
SyncPrefabImporter
Syntax
public class SyncPrefabImporter
Constructors
SyncPrefabImporter(Boolean, String[])
Declaration
public SyncPrefabImporter(bool importLights, params string[] sources)
Parameters
| Type |
Name |
Description |
| System.Boolean |
importLights |
|
| System.String[] |
sources |
|
Methods
Declaration
public SyncObjectBinding CreateInstance(Transform root, SyncObjectInstance instance)
Parameters
| Type |
Name |
Description |
| Transform |
root |
|
| SyncObjectInstance |
instance |
|
Returns
Declaration
public static IEnumerator Import(Transform parent, SyncPrefab syncPrefab, IObjectCache objectCache, Action<Transform> onDone, Action<float, string> onProgress = null)
Parameters
| Type |
Name |
Description |
| Transform |
parent |
|
| SyncPrefab |
syncPrefab |
|
| IObjectCache |
objectCache |
|
| System.Action<Transform> |
onDone |
|
| System.Action<System.Single, System.String> |
onProgress |
|
Returns
| Type |
Description |
| System.Collections.IEnumerator |
|
Declaration
public IEnumerator ImportPrefab(Transform parent, SyncPrefab syncPrefab, Action<float, string> onProgress, Action<Transform> onDone)
Parameters
| Type |
Name |
Description |
| Transform |
parent |
|
| SyncPrefab |
syncPrefab |
|
| System.Action<System.Single, System.String> |
onProgress |
|
| System.Action<Transform> |
onDone |
|
Returns
| Type |
Description |
| System.Collections.IEnumerator |
|
ReimportElement(String)
Declaration
public void ReimportElement(string key)
Parameters
| Type |
Name |
Description |
| System.String |
key |
|
ReimportMaterial(String)
Declaration
public void ReimportMaterial(string key)
Parameters
| Type |
Name |
Description |
| System.String |
key |
|
ReimportMesh(String)
Declaration
public void ReimportMesh(string key)
Parameters
| Type |
Name |
Description |
| System.String |
key |
|
RemoveInstance(SyncObjectBinding)
Declaration
public void RemoveInstance(SyncObjectBinding syncObject)
Parameters