docs.unity3d.com
    Show / Hide Table of Contents

    Class EditorUtility

    Utilities for working in Unity editor.

    Inheritance
    Object
    EditorUtility
    Namespace: UnityEditor.ProBuilder
    Syntax
    public static class EditorUtility

    Methods

    SetGizmoIconEnabled(Type, Boolean)

    Declaration
    public static void SetGizmoIconEnabled(Type script, bool enabled)
    Parameters
    Type Name Description
    Type script
    Boolean enabled

    SynchronizeWithMeshFilter(ProBuilderMesh)

    Ensure that this object has a valid mesh reference, and the geometry is current. If it is not valid, this function will attempt to repair the sync state.

    Declaration
    public static void SynchronizeWithMeshFilter(ProBuilderMesh mesh)
    Parameters
    Type Name Description
    ProBuilderMesh mesh

    The component to test.

    See Also
    meshSyncState

    Events

    meshCreated

    Declaration
    public static event Action<ProBuilderMesh> meshCreated
    Event Type
    Type Description
    Action<ProBuilderMesh>

    Subscribe to this delegate to be notified when a new mesh has been created and initialized through ProBuilder.

    Remarks

    This is only called when an object is initialized in editor, and created by ProBuilder menu items.

    Back to top
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)