기술 자료

Unity Engine

Unity Engine

script

The MonoBehaviour script asset corresponding to the component type represented by this GizmoInfo.
읽는 시간 1분최근 업데이트: 한 달 전

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.