Version: 2023.2

GizmoUtility.TryGetGizmoInfo

切换到手册
public static bool TryGetGizmoInfo (Type type, out GizmoInfo info);

参数

type The type to get GizmoInfo for.
info The output argument will contain a valid GizmoInfo when this function returns true.

返回

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

描述

Get a GizmoInfo for a type if it exists.

Type must be assignable to Component.