Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


WidthOverride

The width override applied to the referenced wire.
Read time 1 minuteLast updated 10 days ago

Definition

public float WidthOverride { get; set; }

Remarks

Setting the value to 0 removes the width override on the wire. Setting a new value overwrites any existing width override for that wire. Setting this property has no effect when the WireReference has no associated WireReference.Context, such as when it is
default
. Throws ObjectDisposedException when you access this method after you call Context.Dispose on the context.
Override the line width of a wire so it appears thicker than the default thickness in the graph canvas.

Examples

WireReference wire = context.GetWireReference(outputPortID, inputPortID);wire.WidthOverride = 4f;