bool Dragging

robot_2Generated
code_blocksInput

Description

The Dragging field is a boolean value that indicates whether the VirtualWidget is currently being dragged. This field is part of the Editor.VirtualWidget class and is used to manage the drag state of the widget within the editor environment.

Usage

To check if a VirtualWidget is being dragged, you can access the Dragging field directly. This field is public and non-static, meaning it is accessed through an instance of the VirtualWidget class.

Example

// Example of checking the Dragging state of a VirtualWidget instance
VirtualWidget widget = new VirtualWidget();

// Check if the widget is being dragged
if (widget.Dragging)
{
    // Perform actions related to dragging
    // e.g., update widget position, handle drag events
}