WidthOverride
The width override applied to the referenced wire.
Read time 1 minuteLast updated 10 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 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 . Throws ObjectDisposedException when you access this method after you call Context.Dispose on the context.
defaultOverride 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;