Version: Unity 6.7 Beta (6000.7)
LanguageEnglish
  • C#

TransitionReference.IsDashed

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

public bool IsDashed;

Description

Whether the referenced transition is drawn with a dashed pattern.

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.

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