com.amanotes.assetfolder
v1.1.0
Published
Serializable asset folder system for Unity. Provides folder-based asset management with auto-refresh, multiple load modes, and custom property drawers.
Downloads
211
Maintainers
Readme
AssetFolder
Package: com.amanotes.assetfolder v1.1.0
Unity: 2022.3+
Namespace: Amanotes.Orchestra
Dependencies: com.amanotes.extensions 1.1.0
Serializable asset folder system for Unity. Manages collections of assets with folder-based auto-population, multiple load modes (DirectRef, Resources, Addressables), and custom property drawers.
Quick Start
// Declare in a MonoBehaviour or ScriptableObject
[SerializeField] AssetFolder views = new AssetFolder();
// Configure asset type (call in Reset() or constructor)
views.SetAssetType<GameObject>();
// Access assets
GameObject prefab = views.Get<GameObject>(0);
GameObject found = views.Find<GameObject>("MyView");
bool exists = views.Has("MyView");
int idx = views.FindIndex("MyView");Key Types
AssetFolder— serializable collection withassets,loadMode,folder,searchDepthAssetFolder<TAssetMeta>— typed variant with per-asset metadata viaIAssetMetaAssetInfo— per-asset entry:id,guid,resourcePath,address,assetRef,metaAssetLoadMode—DirectRef,Resources,AddressablesIAssetFolderChange— implement on host to receiveOnAssetFolderChanged()callbacks
Installing in your project
Add to your Packages/manifest.json:
{
"dependencies": {
"com.amanotes.assetfolder": "1.1.0",
"com.amanotes.extensions": "1.1.0"
},
"scopedRegistries": [
{
"name": "npmjs",
"url": "https://registry.npmjs.org/",
"scopes": [
"com.amanotes"
]
}
]
}Then open Unity — the Package Manager will resolve and download the package automatically.
