bool IsConnected { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The IsConnected property of the PlugOut class in the Editor.NodeEditor namespace indicates whether the plug-out is currently connected to any other node. This property is useful for determining the connection status of a plug-out within a node editor environment.

Usage

To check if a PlugOut instance is connected, simply access the IsConnected property. This property returns a bool value: true if the plug-out is connected, and false otherwise.

Example

// Example of using the IsConnected property
PlugOut plugOut = new PlugOut();

// Check if the plug-out is connected
bool isConnected = plugOut.IsConnected;

if (isConnected)
{
    // Perform actions when the plug-out is connected
    // e.g., update UI, process data, etc.
}
else
{
    // Handle the case when the plug-out is not connected
    // e.g., prompt user to connect, disable certain features, etc.
}