// Copyright (c) 2012-2023 Wojciech Figat. All rights reserved. using System; using System.Collections.Generic; using FlaxEngine; using FlaxEngine.GUI; namespace FlaxEditor.GUI.Drag { /// /// Scripts references drag handler. /// public sealed class DragScripts : DragScripts { /// /// Initializes a new instance of the class. /// /// The validation function public DragScripts(Func validateFunction) : base(validateFunction) { } } /// /// Helper class for handling instance drag and drop. /// /// public class DragScripts : DragHelper where U : DragEventArgs { /// /// The default prefix for drag data used for . /// public const string DragPrefix = "SCRIPT!?"; /// /// Creates a new DragHelper /// /// The validation function public DragScripts(Func validateFunction) : base(validateFunction) { } /// public override DragData ToDragData(Script item) => GetDragData(item); /// public override DragData ToDragData(IEnumerable