Static Asset Loader
Load assets from any project directory by type without specifying file paths. Ideal for loading configuration files and ScriptableObjects in editor tools and runtime code. Simplifies asset management by using type-based discovery instead of hardcoded asset paths.
com.skibitsky.static-asset-loader 
Install via UPM
Add to Unity Package Manager using this URL
https://www.pkglnk.dev/static-asset-loader.git README Markdown
Copy this to your project's README.md
## Installation
Add **Static Asset Loader** to your Unity project via Package Manager:
1. Open **Window > Package Manager**
2. Click **+** > **Add package from git URL**
3. Enter:
```
https://www.pkglnk.dev/static-asset-loader.git
```
[](https://www.pkglnk.dev/pkg/static-asset-loader)Used By (1)
README
Static Asset Loader 
Load asset from any project directory by type
Very useful for loading configuration files of editor tools.
Usage
public class MyEditorWindow : EditorWindow
{
private static MyScriptableObject LoadConfiguration()
{
return StaticAssetLoader.LoadAsset<MyScriptableObject>();
}
}
Installation
Install via OpenUPM
The package is available on the openupm registry. It's recommended to install it via openupm-cli.
openupm add com.skibitsky.static-asset-loader
Install via Git URL
Open Packages/manifest.json with your favorite text editor. Add the following line to the dependencies block.
{
"dependencies": {
"com.skibitsky.static-asset-loader": "https://github.com/skibitsky/static-asset-loader.git"
}
}
Notice: Unity Package Manager records the current commit to a lock entry of the manifest.json. To update to the latest version, change the hash value manually or remove the lock entry to resolve the package.
"lock": {
"com.skibitsky.static-asset-loader": {
"revision": "master",
"hash": "..."
}
}
No comments yet. Be the first!