WidthOverride
The line width override applied to the referenced transition.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Property
- Namespace: Unity.GraphToolkit.Editor.GraphVisualization
- Assembly: UnityEditor
public float WidthOverride { get; set; }
Remarks
Setting the value to 0 removes the width override on the transition. Setting a new value overwrites any existing width override for that transition. 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. Getting or setting this property has no effect, and getting it returns , when the TransitionReference has no associated TransitionReference.Context, such as when it is . Throws ObjectDisposedException when you access this property after you call Context.Dispose on the context.
0fdefaultOverride the line width of a transition so it appears thicker than the default thickness.
Examples
TransitionReference transitionRef = context.GetTransitionReference(transitionID);transitionRef.WidthOverride = 4f;