docs.unity3d.com
    Show / Hide Table of Contents

    Class BaseMeshSync

    The base class of main MeshSync components (MeshSyncServer, SceneCachePlayer), which encapsulates common functionalities

    Inheritance
    Object
    BaseMeshSync
    MeshSyncServer
    SceneCachePlayer
    Namespace: Unity.MeshSync
    Syntax
    public abstract class BaseMeshSync : MonoBehaviour, ISerializationCallbackReceiver

    Fields

    m_onMaterialChangedInSceneViewCB

    Declaration
    protected Action m_onMaterialChangedInSceneViewCB
    Field Value
    Type Description
    Action

    Methods

    GetMaterialIndex(Material)

    Declaration
    protected int GetMaterialIndex(Material mat)
    Parameters
    Type Name Description
    Material mat
    Returns
    Type Description
    Int32

    GetServerDocRootPath()

    Declaration
    protected string GetServerDocRootPath()
    Returns
    Type Description
    String

    InitInternalV()

    Declaration
    protected abstract void InitInternalV()

    MarkMeshesDynamic(Boolean)

    Declaration
    protected void MarkMeshesDynamic(bool markMeshesDynamic)
    Parameters
    Type Name Description
    Boolean markMeshesDynamic

    OnAfterDeserialize()

    Called during serialization as an implementation of ISerializationCallbackReceiver

    Declaration
    public void OnAfterDeserialize()

    OnAfterDeserializeMeshSyncPlayerV()

    Declaration
    protected abstract void OnAfterDeserializeMeshSyncPlayerV()

    OnBeforeSerialize()

    Called during serialization as an implementation of ISerializationCallbackReceiver

    Declaration
    public void OnBeforeSerialize()

    OnBeforeSerializeMeshSyncPlayerV()

    Declaration
    protected abstract void OnBeforeSerializeMeshSyncPlayerV()

    OnDisable()

    Monobehaviour's OnDisable(). Can be overridden

    Declaration
    protected virtual void OnDisable()

    OnEnable()

    Monobehaviour's OnEnable(). Can be overridden

    Declaration
    protected virtual void OnEnable()

    SetSaveAssetsInScene(Boolean)

    Declaration
    protected void SetSaveAssetsInScene(bool saveAssetsInScene)
    Parameters
    Type Name Description
    Boolean saveAssetsInScene

    Try(Action)

    Declaration
    protected bool Try(Action act)
    Parameters
    Type Name Description
    Action act
    Returns
    Type Description
    Boolean
    Back to top
    Terms of use
    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