GizmoInfo
GizmoInfo contains information about the Scene View gizmo and icon for a component type.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Class
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
- Implements: IComparable
public class GizmoInfo : IComparable
Remarks
See GizmoUtility for an example.
Properties
Property | Description |
|---|---|
| gizmoEnabled | Toggle gizmo visibility in the Scene View for components of this type. |
| hasGizmo | Defines whether a component type renders any gizmos in the Scene View. |
| hasIcon | Defines whether a component type renders an icon in the Scene View. |
| iconEnabled | Toggle icon visibility in the Scene View for components of this type. |
| name | The display name for the type represented by this GizmoInfo. |
| script | The MonoBehaviour script asset corresponding to the component type represented by this GizmoInfo. |
| thumb | A preview image for the component type. |
Methods
Method | Description |
|---|---|
| CompareTo | Returns an integer value comparing the name property of two GizmoInfo types. |