Class SyncInstance | Unity Reflect | 1.1.0-preview.6
docs.unity.cn
    Show / Hide Table of Contents

    Class SyncInstance

    Inheritance
    Object
    SyncInstance
    Namespace: UnityEngine.Reflect
    Syntax
    public class SyncInstance

    Constructors

    SyncInstance(Transform, String)

    Declaration
    public SyncInstance(Transform syncRoot, string syncPath)
    Parameters
    Type Name Description
    Transform syncRoot
    String syncPath

    Properties

    Manifest

    Declaration
    public SyncManifest Manifest { get; }
    Property Value
    Type Description
    SyncManifest

    Methods

    ApplyModifications(SyncManifest)

    Declaration
    public bool ApplyModifications(SyncManifest manifest)
    Parameters
    Type Name Description
    SyncManifest manifest
    Returns
    Type Description
    Boolean

    ApplyPrefabChanges()

    Declaration
    public IEnumerator ApplyPrefabChanges()
    Returns
    Type Description
    IEnumerator

    GetInstanceCount()

    Declaration
    public int GetInstanceCount()
    Returns
    Type Description
    Int32

    GetPrefab()

    Declaration
    public SyncPrefab GetPrefab()
    Returns
    Type Description
    SyncPrefab

    RemoveVisibilityFilter(ISet<SyncObjectBinding.Identifier>)

    Declaration
    public void RemoveVisibilityFilter(ISet<SyncObjectBinding.Identifier> filter)
    Parameters
    Type Name Description
    ISet<SyncObjectBinding.Identifier> filter

    SetVisibilityFilter(ISet<SyncObjectBinding.Identifier>)

    Declaration
    public void SetVisibilityFilter(ISet<SyncObjectBinding.Identifier> filter)
    Parameters
    Type Name Description
    ISet<SyncObjectBinding.Identifier> filter

    Events

    onObjectChanged

    Declaration
    public event SyncInstance.ObjectEventHandler onObjectChanged
    Event Type
    Type Description
    SyncInstance.ObjectEventHandler

    onObjectCreated

    Declaration
    public event SyncInstance.ObjectEventHandler onObjectCreated
    Event Type
    Type Description
    SyncInstance.ObjectEventHandler

    onObjectDestroyed

    Declaration
    public event SyncInstance.ObjectEventHandler onObjectDestroyed
    Event Type
    Type Description
    SyncInstance.ObjectEventHandler

    onPrefabChanged

    Declaration
    public event SyncInstance.InstanceEventHandler onPrefabChanged
    Event Type
    Type Description
    SyncInstance.InstanceEventHandler

    onPrefabLoaded

    Declaration
    public event SyncInstance.InstanceEventHandler onPrefabLoaded
    Event Type
    Type Description
    SyncInstance.InstanceEventHandler
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX