[RELEASED] Unique Scriptable Objects

I’m happy to announce my first Unity Asset Store submission - Unique Scriptable Objects!

This is a tool that enables automatic integer ID tracking of chosen scriptable object types without ever having to think about it once it’s set up. It uses source generators to inject a serializable field with the ID, so it’s part of your scriptable object itself, without impacting the inheritance. It also supports retiring IDs so they are not used in the future even though the assets that had been using it got deleted.

Check it out yourself here!

1 Like

Does this also generate an enum-replacement class with constants?

like

public class MyItems
{
    public const int Apple = 0;
    public const int Orange = 1;
}

Also I’m not seeing a note for which versions of Unity this supports.

1 Like

Hi!

Yes, it can do that for any types you need. Here’s a part of the guide that describes this feature:


If the generated output does not meet your expectations perfectly, you can also edit the generator code yourself.

About the Unity version, I’m aware of this problem, I’ve already submitted a page update where it displays the actual minimal version for the asset to work. It is 2022.3.7 and above.

I hope I helped!

2 Likes