Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


IsDashed

Whether the referenced transition is drawn with a dashed pattern.
Read time 1 minuteLast updated 6 days ago

Definition

public bool IsDashed { get; set; }

Remarks

Setting a new value overwrites any existing dash pattern override for that transition. The transition keeps the dashed pattern until you set this property back to
false
or call TransitionReference.ClearCustomization. On a state-to-state transition, this property dashes the transition's wire. On a self transition, this property dashes the transition arrow's border instead. Getting or setting this property has no effect, and getting it returns
false
, when the TransitionReference has no associated TransitionReference.Context, such as when it is
default
. Throws ObjectDisposedException when you access this property after you call Context.Dispose on the context.

Examples

TransitionReference transitionRef = context.GetTransitionReference(transitionID);transitionRef.IsDashed = true;