docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class EditorUtility

    Contains utilities for working in the Unity Editor.

    Inheritance
    object
    EditorUtility
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEditor.ProBuilder
    Assembly: Unity.ProBuilder.Editor.dll
    Syntax
    public static class EditorUtility

    Methods

    SetGizmoIconEnabled(Type, bool)

    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).

    bool 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.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)