Class SyncPrefabImporter | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class SyncPrefabImporter

    Inheritance
    System.Object
    SyncPrefabImporter
    Namespace: UnityEngine.Reflect
    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

    CreateInstance(Transform, SyncObjectInstance)

    Declaration
    public SyncObjectBinding CreateInstance(Transform root, SyncObjectInstance instance)
    Parameters
    Type Name Description
    Transform root
    SyncObjectInstance instance
    Returns
    Type Description
    SyncObjectBinding

    Import(Transform, SyncPrefab, IObjectCache, Action<Transform>, Action<Single, String>)

    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

    ImportPrefab(Transform, SyncPrefab, Action<Single, String>, Action<Transform>)

    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
    Type Name Description
    SyncObjectBinding syncObject
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023