Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/skibitsky/static-asset-loader
Load asset by type from any project directory
https://github.com/skibitsky/static-asset-loader
unity upm upm-package
Last synced: 30 days ago
JSON representation
Load asset by type from any project directory
- Host: GitHub
- URL: https://github.com/skibitsky/static-asset-loader
- Owner: skibitsky
- Created: 2020-06-21T10:25:59.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-06-22T06:55:16.000Z (over 4 years ago)
- Last Synced: 2024-09-30T18:03:04.319Z (about 1 month ago)
- Topics: unity, upm, upm-package
- Language: C#
- Homepage:
- Size: 5.86 KB
- Stars: 12
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Static Asset Loader [![openupm](https://img.shields.io/npm/v/com.skibitsky.static-asset-loader?label=openupm®istry_uri=https://package.openupm.com)](https://openupm.com/packages/com.skibitsky.static-asset-loader/)
> Load asset from any project directory by type
Very useful for loading configuration files of editor tools.
## Usage
```csharp
public class MyEditorWindow : EditorWindow
{
private static MyScriptableObject LoadConfiguration()
{
return StaticAssetLoader.LoadAsset();
}
}
```## Installation
### Install via OpenUPM
The package is available on the [openupm registry](https://openupm.com). It's recommended to install it via [openupm-cli](https://github.com/openupm/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": "..."
}
}