Feature request: Alternative AssetReference that stores name instead of GUID

Request: Alternative to AssetReference that stores the string “addressable name” as shown in the groups window instead of the GUID of the asset.

One possible solution would be an attribute for a serialized string field that shows the nice inspector.

e.g.

[SerializeField, AssetName("OptionalLabel")] string _myAssetName;

The specific use case here is that we have a set of assets that are not under version control. These are JSON assets that are generated by a DSL. We don’t keep them under version control because they are constantly changing and do not merge well.

Any AssetReference that points at them is broken on checkout, as new IDs are assigned when the files are generated.

Thanks for the suggestion! I’ll kick it to the team for you!

1 Like