Publisher | Ciro Continisio |
---|---|
File size | 41.69kB |
Number of files | 24 |
Latest version | 1.0.1 |
Latest release date | 2024-07-18 05:22:18 |
First release date | 2024-07-16 10:07:12 |
Supported Unity versions | 2018.4.2 or higher |
GameObjects have child elements. Can assets have them too? Yes! Sub-assets!
Sub-what?!
Sub-assets have been a feature in Unity since the very early days. But outside of some default types generated as a result of an importing an .fbx (Animation Clips, Meshes, Materials) it is rare to see developers use them in their games. Working with them is clunky, and programmers need to take the time to create their own tooling.
But they can be very powerful! With Sub-assets you can:
▼ Break massive ScriptableObjects into smaller ones
These small SOs can be used like components
▶ Nest assets in Prefabs!
▼ Related assets are kept together
Helps designers see relations and dependencies
Easier to reorganise and move them around
▶ Addressable management becomes simpler
SubAssets Toolbox provides native and intuitive workflows for programmers as well as the rest of the team, unlocking all of the potential of this under-utilized Unity pillar.
Editor workflows
- Drag assets on top of others to make them sub-assets.
- Remove sub-assets by dragging them away, to turn them into independent assets.
- Drag and drop supports multi-selection (also of a mix of assets and sub-assets).
Shortcuts and context menus
- Ctrl+Delete shortcut to delete a sub-asset.
- Right-click > Delete Sub-Asset(s) on a selection of sub-assets to delete them.
- Right-click > Create menu while an asset is selected, the newly-created asset is immediately added as a sub-asset.
API
To use them at runtime, you need a reference to sub-assets. SubAssets Toolbox provides a handy interface and a class to create your own ScriptableObject types that can keep track of their sub-assets, complete with a nice list UI for the Inspector (see images).
Documentation
You can preview the documentation and learn all about the functionality before you get the asset.
Feedback
If there is a workflow SubAssets Toolbox doesn't cover, I'd like to hear from you how I can make it better. You can write to [email protected] and we can assess if it can be added to the asset. Or hop on my Discord to have a chat.