文档

Unity Engine

Unity Engine

name

The display name for the type represented by this GizmoInfo.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Property
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public string name { 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.