Opacity
The opacity multiplier applied to the referenced wire.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Property
- Namespace: Unity.GraphToolkit.Editor.GraphVisualization
- Assembly: UnityEditor
public float Opacity { get; set; }
Remarks
The opacity multiplier is clamped to the [0, 1] range when set. Setting a new value overwrites any existing opacity 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.
defaultReduce the opacity of a wire to draw it semi-transparently in the graph canvas, for example to de-emphasize inactive connections.
Examples
WireReference wire = context.GetWireReference(outputPortID, inputPortID);wire.Opacity = 0.5f;