GizmoUtility.TryGetGizmoInfo

Declaration

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

Parameters

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

Returns

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

Description

Get a GizmoInfo for a type if it exists.

Type must be assignable to Component.


Did you find this page useful? Please give it a rating: