文档

Unity Engine


User Manual

Script Reference

Unity Engine


TryGetGizmoInfo(Type, out GizmoInfo)

Get a GizmoInfo for a type if it exists.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule

TryGetGizmoInfo(Type, GizmoInfo)

public static bool TryGetGizmoInfo(Type type, out GizmoInfo info)

Parameters

type

The type to get GizmoInfo for.

The output argument will contain a valid GizmoInfo when this function returns true.

Returns

Type

Description

boolReturns true if Unity has a gizmo or icon registered for the requested type.

Remarks

Type must be assignable to Component.