/// <inheritdoc /> public override DragDropEffect OnDragEnter(ref Vector2 location, DragData data) { var result = base.OnDragEnter(ref location, data); if (result != DragDropEffect.None) return result; return _dragHandlers.OnDragEnter(data); }
/// <inheritdoc /> public override DragDropEffect OnDragEnter(ref Float2 location, DragData data) { var result = base.OnDragEnter(ref location, data); if (result != DragDropEffect.None) { return(result); } return(_dragHandlers.OnDragEnter(data)); }
/// <inheritdoc /> public override DragDropEffect OnDragEnter(ref Vector2 location, DragData data) { ClearDragEffects(); var result = base.OnDragEnter(ref location, data); if (result != DragDropEffect.None) { return(result); } result = DragHandlers.OnDragEnter(data); SetDragEffects(ref location); return(result); }
/// <inheritdoc /> public override DragDropEffect OnDragEnter(ref Vector2 location, DragData data) { var result = base.OnDragEnter(ref location, data); if (result != DragDropEffect.None) { return(result); } var dragEffect = DragHandlers.OnDragEnter(data); if (dragEffect.HasValue) { result = dragEffect.Value; } return(result); }
/// <inheritdoc /> public override DragDropEffect OnDragEnter(ref Float2 location, DragData data) { var result = base.OnDragEnter(ref location, data); if (result != DragDropEffect.None) { return(result); } if (_dragHandlers == null) { _dragScripts = new DragScriptItems(ValidateScript); _dragAssets = new DragAssets(ValidateAsset); _dragHandlers = new DragHandlers { _dragScripts, _dragAssets, }; } return(_dragHandlers.OnDragEnter(data)); }