https://github.com/ese9/extended-asset-references
https://github.com/ese9/extended-asset-references
addressables asset-reference attributes extension unity unity-asset unity-editor unity3d
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ese9/extended-asset-references
- Owner: ese9
- License: mit
- Created: 2024-10-14T20:29:27.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-12T15:42:06.000Z (over 1 year ago)
- Last Synced: 2025-04-07T05:44:27.701Z (about 1 year ago)
- Topics: addressables, asset-reference, attributes, extension, unity, unity-asset, unity-editor, unity3d
- Language: C#
- Homepage:
- Size: 56.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Extended Asset References 🎮
Extended Asset References is an open-source package that enhances Unity's Addressable Asset System functionality. This package introduces custom attributes designed to improve and streamline your workflow when dealing with AssetReferences.
**Compatible with:**
- ✅ [Tri Inspector](https://github.com/codewriter-packages/Tri-Inspector)
- ⚠️ [Odin Inspector](https://odininspector.com/). For compatibility, the `[DrawWithUnity]` attribute must be added to the AssetReference field
## ✨ Features
- Custom attributes for enhanced AssetReference handling
- Improved workflow for Addressable asset management
- Easy integration with existing Unity projects
- Visual sprite preview and selection tools
- Automated atlas validation and problem-solving
## 📦 Installation
Install via Unity Package Manager using one of these Git URLs:
- Main branch:
```
https://github.com/ese9/Extended-Asset-References.git
```
- Specific version:
```
https://github.com/ese9/Extended-Asset-References.git#v1.0.0
```
## 🚀 Usage
Once installed, enhance your Unity scripts with our custom attributes for better asset reference management.
### Asset Reference Sprite
#### FromAtlas
```csharp
using Nine.AssetReferences;
using UnityEngine;
using UnityEngine.AddressableAssets;
public class Resource : ScriptableObject
{
[FromAtlas]
public AssetReferenceSprite iconRef;
}
```
#### FromSprite
```csharp
using Nine.AssetReferences;
using UnityEngine;
using UnityEngine.AddressableAssets;
public class Resource : ScriptableObject
{
[FromSprite]
public AssetReferenceSprite iconRef;
}
```
Example of selecting a sprite when using any of the attributes

## 📄 License
This project is licensed under the MIT License. See the [LICENSE](https://github.com/ese9/Extended-Asset-References/blob/main/LICENSE.md) file for details.