Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Icon

The icon displayed for this condition in the transition inspector, or null if none is set.
Read time 1 minuteLast updated 6 days ago

Definition

public Texture2D Icon { get; set; }

Remarks

Not persisted with the graph. Set this to one of DebugStyles.TrueIcon, DebugStyles.FalseIcon, DebugStyles.PendingIcon, or a custom icon, to visually indicate the evaluation status of this condition. A visualization tool that doesn't own the graph asset can override the displayed icon without changing this value; see ConditionReference.Icon.

Examples

Icon = DebugStyles.PendingIcon;