ClearPreview()
Clears the port preview for the specified port.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Method
- Namespace: Unity.GraphToolkit.Editor.GraphVisualization
- Assembly: UnityEditor
public void ClearPreview()
Remarks
The port preview is hidden from the graph canvas until a new value is set using PortReference.SetPreview. If the provided port ID does not correspond to any port in the graph, any stored preview data for that port is removed and the call has no further effect. Throws ObjectDisposedException when you access this method after you call Context.Dispose on the context.
Examples
context.GetPortReference(portID).ClearPreview();