ソースコード
using System.Linq; using UnityEngine; using UnityEngine.AddressableAssets; public sealed class Example : MonoBehaviour { public AssetReference m_assetReference; private void Start() { var handle = Addressables.LoadResourceLocationsAsync( m_assetReference ); var result = handle.WaitForCompletion(); var location = result.FirstOrDefault(); var address = location?.PrimaryKey ?? string.Empty; Debug.Log( address ); Addressables.Release( handle ); } }