文档

Unity Engine

Unity Engine

script

The MonoBehaviour script asset corresponding to the component type represented by this GizmoInfo.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Property
  • Namespace: UnityEditor
  • Assembly: UnityEditor
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.