docs.unity3d.com
    Show / Hide Table of Contents

    Class EditorUtility

    Contains utilities for working in the Unity Editor.

    Inheritance
    Object
    EditorUtility
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEditor.ProBuilder
    Syntax
    public static class EditorUtility

    Methods

    SetGizmoIconEnabled(Type, Boolean)

    Attaches a scene gizmo to the mesh in the Unity Editor.

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

    The Type representing the class of the item to attach the gizmo to (for example, the ProBuilderMesh).

    Boolean enabled

    True to render the gizmo (for example, while selected); false to not render it.

    SynchronizeWithMeshFilter(ProBuilderMesh)

    Checks whether this object has a valid mesh reference, and the geometry is current. If the check fails, this function attempts to repair the sync state.

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

    The mesh component to test.

    See Also
    meshSyncState

    Events

    meshCreated

    Raised when a new mesh has been created and initialized through ProBuilder.

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

    This is only called when a user creates an object in the Editor using a ProBuilder menu item.

    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