Example #1
0
 protected void OnEnable()
 {
     _hook = new UnityDragAndDropHook();
     _hook.InstallHook();
     _hook.OnDroppedFiles += OnDroppedFiles;
 }
Example #2
0
 private void OnEnable()
 {
     hook = new UnityDragAndDropHook();
     hook.InstallHook();
     hook.OnDroppedFiles += OnDroppedFiles;
 }
Example #3
0
 private void Start() // Run in start instead of onenable to avoid the hook timing out and failing in rare cases
 {
     hook = new UnityDragAndDropHook();
     hook.InstallHook();
     hook.OnDroppedFiles += (aFiles, aPos) => ThreadingHelper.Instance.StartSyncInvoke(() => OnFiles(aFiles, aPos));
 }