ScriptableObjectCollection
A library to help improve the usability of Unity3D Scriptable Objects by grouping them into a collection and providing easy access through code or user-friendly
What is ScriptableObjectCollection?
A library to help improve the usability of Unity3D Scriptable Objects by grouping them into a collection and providing easy access through code or user-friendly inspectors!
Overview of ScriptableObjectCollection
What it is
ScriptableObjectCollection is a library for Unity3D that improves the usability of Scriptable Objects by grouping them into collections. It provides tools to access these objects through code or user-friendly inspectors, reducing the need for manual references and naming conventions.
Key features
- Access Scriptable Objects by code, reducing the number of references in the project
- Group related Scriptable Objects into a coherent interface
- Enable dropdown selection of collection items when serialized through the inspector
- Automatically generate static access code for collections
- Expose entire objects for tweaking in any inspector
- Iterate over all items of a collection using
Collection.Values - Editor-time compilation error if any statically accessed item goes missing
Use cases
Managing consumables, weapons, in-app purchases, or any other set of Scriptable Objects that belong together. Suitable for larger teams where consistent access and organization of game data is important.
Getting started
Install via OpenUPM (recommended):1. Open Edit/Project Settings/Package Manager2. Add a new Scoped Registry: Name: OpenUPM URL: https://package.openupm.com/ Scope(s): com.brunomikoski3. Click Save4. Open Package Manager5. Click +6. Select Add from Git URL7. Paste com.brunomikoski.scriptableobjectcollection8. Click AddAlternatively, add from GitHub (no updates via Package Manager):1. Open Package Manager2. Click +3. Select Add from Git URL4. Paste https://github.com/brunomikoski/ScriptableObjectCollection.git5. Click AddAfter installation, create a new collection via Assets/Create/Scriptable Object Collection/New Collection, add items, and generate static access code.
License and pricing
Licensed under MIT. Open source.
Based on the project's public README and repository metadata.