Elin Decompiled Documentation EA 23.102 Nightly
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Pages
FileDragAndDrop.cs
Go to the documentation of this file.
1using System;
2using System.Collections.Generic;
3using B83.Win32;
4using UnityEngine;
5
6public class FileDragAndDrop : MonoBehaviour
7{
8 public static Action<List<string>> onDrop;
9
10 private void OnEnable()
11 {
13 UnityDragAndDropHook.OnDroppedFiles += OnFiles;
14 }
15
16 private void OnDisable()
17 {
19 }
20
21 private void OnFiles(List<string> aFiles, POINT aPos)
22 {
23 if (onDrop != null)
24 {
25 onDrop(aFiles);
26 }
27 }
28}
void OnFiles(List< string > aFiles, POINT aPos)
static Action< List< string > > onDrop