Version: 2023.2
LanguageEnglish
  • C#

GizmoUtility.TryGetGizmoInfo

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

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.