Description
The DragLink
field is a member of the Editor.CursorShape
enumeration. It represents a cursor shape that is typically used to indicate a drag-and-drop operation where a link is being created. This cursor shape is useful in scenarios where the user is expected to drag an item and create a link to another item or location.
Usage
To use the DragLink
cursor shape, you can set the cursor in your editor or application to this shape when a drag-and-drop operation involving linking is initiated. This provides a visual cue to the user that a link is being established.
Example
// Example of setting the cursor shape to DragLink during a drag-and-drop operation
void OnDragStart()
{
// Set the cursor to indicate a link is being created
Editor.SetCursorShape(Editor.CursorShape.DragLink);
}
void OnDragEnd()
{
// Reset the cursor to default
Editor.SetCursorShape(Editor.CursorShape.Arrow);
}