Class EditorUtility
Utilities for working in Unity editor.
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
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.