I am working on an custom editor window that will store data in a SQLite database. I want to store the address that I specified for a given object in one of the columns. I cannot figure out how to get the address! I have code that does this:
if (_prefabField.value != null && IsAssetAddressable(_prefabField.value))
{
var tcs = new TaskCompletionSource<bool>();
var path = AssetDatabase.GetAssetPath(_prefabField.value);
var assetReference = new AssetReferenceT<GameObject>(path);
}
The problem is that the values stored in assetReference are the full path of the asset - not the addressable address. How can I find this?