Unity-Technologies / Addressables-Sample

Demo project using Addressables package
1.31k stars 300 forks source link

Unity 2019.4.10 Addressables 1.15.1 SyncAddressale Demo #45

Closed jonny91 closed 3 years ago

jonny91 commented 4 years ago

It is seem to be wrong with above unity versions. Exception: Sync Instantiate failed to finish! Cube SyncAddressables.Instantiate (System.Object key, UnityEngine.Transform parent, System.Boolean instantiateInWorldSpace) (at Assets/SyncAddressables/SyncAddressables.cs:57) spawner.FixedUpdate () (at Assets/spawner.cs:34)

VincentSai commented 4 years ago

You need to change "Play Mode Script" to "Sync Fast" on Addressable Groups window, also need to fix bug on SyncFastModeBuild.cs

            var aaContext = new AddressableAssetsBuildContext
            {
                Settings = aaSettings,
                runtimeData = new ResourceManagerRuntimeData(),
                bundleToAssetGroup = null,
                locations = new List<ContentCatalogDataEntry>(),
                providerTypes = new HashSet<Type>() //Add this
            };
jonny91 commented 3 years ago

thx . it works!