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

ITransition.WidthOverride

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 float WidthOverride;

Description

The line width override applied to the transition.

Setting the value to 0 removes the width override on the transition, so the transition reverts to the default thickness. On a state-to-state transition, this property sets the width of the transition's wire and of the border of its arrow. On a self transition, this property sets the width of the transition arrow's border.

 ITransition startTransition = myStateMachine.GetTransitions(startState, nextState).First();
 startTransition.WidthOverride = 4f;