Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


WidthOverride

The line width override applied to the referenced transition.
Read time 1 minuteLast updated 6 days ago

Definition

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
0f
, 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.
Override the line width of a transition so it appears thicker than the default thickness.

Examples

TransitionReference transitionRef = context.GetTransitionReference(transitionID);transitionRef.WidthOverride = 4f;