Class EditorUtility
Contains utilities for working in the Unity Editor.
Inherited Members
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
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.