Class EditorUtility | ProBuilder | 4.3.1
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 — 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