WidthOverride
The line width override applied to the transition.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Property
- Namespace: Unity.GraphToolkit.Editor
- Assembly: UnityEditor
float WidthOverride { get; set; }
Remarks
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.
Examples
ITransition startTransition = myStateMachine.GetTransitions(startState, nextState).First();startTransition.WidthOverride = 4f;