Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ClearPreview()

Clears the port preview for the specified port.
Read time 1 minuteLast updated 12 days ago

Definition

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();