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

TransitionReference.FillColor

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> FillColor;

Description

The color the referenced transition's arrow is filled with, or null when no fill color override is applied.

This property sets the transition arrow's fill color only. Use TransitionReference.LineColor to color the transition wire and arrow border. Setting null means no fill color is applied, in which case the transition falls back to ITransition.FillColor. Setting a new value overwrites any existing fill 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.FillColor = DebugStyles.Pending;