| Parameter | Description |
|---|---|
| displayValue | When this method returns true, contains the string value of the port preview; otherwise, null. |
bool true if the port preview value was successfully retrieved; otherwise, false.
Retrieves the current string value assigned to the port preview for a given port.
If no port preview is currently set for the given port, this method returns false and is null.
Call PortReference.SetPreview to assign a display value to a port preview before querying it.
Throws ObjectDisposedException when you access this method after you call Context.Dispose on the context.
if (context.GetPortReference(portID).TryGetPreview(out var displayValue))
Debug.Log(displayValue);