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

TransitionReference.LineColor

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 Nullable<Color> LineColor;

Description

The color the referenced transition's wire and arrow border is drawn with, or null when no line color override is applied.

This property sets the transition's wire and arrow border color only. Use TransitionReference.FillColor to set the transition arrow's fill color. Setting null means no line color is applied, in which case the transition falls back to ITransition.LineColor. Setting a new value overwrites any existing line color for that transition. Setting the value back to null removes it. Getting or setting this property has no effect, and getting it returns null, 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.LineColor = DebugStyles.Pending;