Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


TryGetGizmoInfo(Type, out GizmoInfo)

Get a GizmoInfo for a type if it exists.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor

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.