Description
The Vertical
field is a member of the DragDirection
enumeration within the Editor.NodeEditor
namespace. This enumeration is used to specify the direction in which a drag operation can occur within a node editor interface. The Vertical
value indicates that the drag operation is restricted to vertical movement.
Usage
Use the Vertical
field when you need to specify that a drag operation should only allow movement along the vertical axis. This is particularly useful in user interface components where vertical dragging is required, such as sliders or scrollable lists.
Example
// Example of using DragDirection.Vertical
public class NodeEditorExample
{
public void ConfigureDragDirection()
{
DragDirection direction = DragDirection.Vertical;
// Use the direction variable to set up drag behavior
// For example, configuring a UI component to only allow vertical dragging
}
}