UnityEngine.AddressableAssets.InvalidKeyException: Exception of type 'UnityEngine.AddressableAssets.InvalidKeyException' was thrown. No Asset found with for Key=EventData. Key exists as Type=UnityEditor.DefaultAsset, which is not assignable from the requested Type=UnityEngine.TextAsset
UnityEngine.AddressableAssets.Addressables:LoadAssetAsync<UnityEngine.TextAsset> (object)
Script.Resource.AAResourceManager:LoadDataAssetAsync<UnityEngine.TextAsset> (string) (at Assets/Script/Resource/AAResourceManager.cs:15)
GameManager/<GetDatas>d__7:MoveNext () (at Assets/Script/Manager/GameManager.cs:63)
System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<System.Collections.Generic.Dictionary`2<System.Type, byte[]>>:Start<GameManager/<GetDatas>d__7> (GameManager/<GetDatas>d__7&)
GameManager:GetDatas ()
GameManager/<Init>d__6:MoveNext () (at Assets/Script/Manager/GameManager.cs:53)
System.Runtime.CompilerServices.AsyncVoidMethodBuilder:Start<GameManager/<Init>d__6> (GameManager/<Init>d__6&)
GameManager:Init ()
GameManager:Awake () (at Assets/Script/Manager/GameManager.cs:35)
解決方法:文件由.dat后綴改為.bytes后綴就可以了洲炊。
原因猜測:Unity中图焰,.bytes文件被視為TextAsset類型的文件.dat不是?