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
Returns
Type | Description |
|---|---|
| bool | Returns true if Unity has a gizmo or icon registered for the requested type. |
Remarks
Type must be assignable to Component.