How to get address from AssetReference in runtime?

Title. I want to get the address from a serialized AssetReference. How can I do this?

Do you mean the path?

Mmm I only found a way in editor mode, but why do you need such thing at runtime?

AssetDatabase.GetAssetPath(bundler.reference.editorAsset);

1 Like

AssetReference only holds a GUID, so no way to get address at runtime.

More in How to get name from AssetReference

2 Likes