script
The MonoBehaviour script asset corresponding to the component type represented by this GizmoInfo.
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Property
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
public Object script { get; }
Remarks
User-defined types are accessible through the GizmoInfo.script property, but built-in types (e.g., Transform) are not. Use GizmoInfo.name to identify built-in gizmo types.