ProwlEngine / Prowl

An Open Source C# 3D Game Engine under MIT license, inspired by Unity and featuring a complete editor and built on Silk.NET
MIT License
328 stars 27 forks source link

[Editor] DragnDrop Improvement #110

Closed michaelsakharov closed 4 months ago

michaelsakharov commented 5 months ago

The AssetBrowser needs a way to support dragndrop of files into folders, the issue is that a file is also an asset and uses OfferAsset that doesn't come with the path/fileinfo for moving files around.

So we need DragnDrop to support multiple types, like List offers = [ new AssetOffer(guid), new ReferenceOffer(fileinfo) ] DragnDrop.OfferComplex(offers)

Then 1 payload can store multiple things, so it can be dropped in as an asset to an inspector property field via the asset payload or into a folder via the fileinfo payload