A Unity Editor PropertyDrawer
for AssetAddresses using GUIDs for Asset names.
This should be subclassed in your project to define what the PropertyDrawer should use for the 'asset name' field. Whichever you mark as 'official' in your project needs [CustomPropertyDrawer(typeof(AssetAddress))]
This version stores the asset GUID for the 'asset name', but that's not actually supported by Unity by default.
Protected Member Functions | |
override string | GetContentPathFor (AssetAddress addy) |
override AssetAddress | AddressForContent (Object @object) |
Additional Inherited Members | |
![]() | |
override void | OnGUI (Rect position, SerializedProperty property, GUIContent label) |
|
inlineprotectedvirtual |
Given an asset in Editor, make an AssetAddress out of it.
object |
Implements AssetAddressPropertyDrawer.
|
inlineprotectedvirtual |
Given an address, get the path to the asset in Editor.
addy |
Implements AssetAddressPropertyDrawer.