Description
The Files
property of the Editor.DragData
class provides access to all files and folders included in the drag data. This property returns an array of strings, where each string represents the path to a file or folder that is part of the drag-and-drop operation.
Usage
To access the Files
property, you need an instance of the Editor.DragData
class. This property is useful when you need to process or iterate over all files and folders involved in a drag-and-drop event.
Example usage:
Editor.DragData dragData = GetDragData();
string[] files = dragData.Files;
foreach (string file in files)
{
// Process each file or folder path
ProcessFile(file);
}
Example
Editor.DragData dragData = GetDragData();
string[] files = dragData.Files;
foreach (string file in files)
{
// Process each file or folder path
ProcessFile(file);
}