Default (unfriendly) way

Fields

Fields

Editor view

Editor view

List<SDFSpriteReference> and SDFSpriteReference[] is a valid approach to reference sdf’s, however for mass referencing it is insufficient, since each entry need to be filled by hand.

SDF List (proper) way

Class definition

Class definition

Field

Field

SDFSpriteReferenceList represents serialized list of sdf’s, with UX adjustments to make mass-referencing easier.

It adds Drag&Drop conversions, so you can drag a lot of things into the field, and it will figure out how to fill itself with entries.

Supported Drag&Drop’s

1. Texture with multiple sprites

Before drop

Before drop

After drop

After drop

2. SDFAsset

Before drop

Before drop

After drop will be the same as before, but with sdf’s from DND_icons_SDF.sdfasset

3. Mixed objects (Sprites)

Before drop

Before drop

Here regular sprites, and sdf sprites is dragged.

After drop

After drop