diff --git a/Basic/DynamicAddressablesNetworkPrefabs/Assets/Scripts/02_Server Authoritative Load All Async/ServerAuthoritativeLoadAllAsync.cs b/Basic/DynamicAddressablesNetworkPrefabs/Assets/Scripts/02_Server Authoritative Load All Async/ServerAuthoritativeLoadAllAsync.cs index 418886026..c66736006 100644 --- a/Basic/DynamicAddressablesNetworkPrefabs/Assets/Scripts/02_Server Authoritative Load All Async/ServerAuthoritativeLoadAllAsync.cs +++ b/Basic/DynamicAddressablesNetworkPrefabs/Assets/Scripts/02_Server Authoritative Load All Async/ServerAuthoritativeLoadAllAsync.cs @@ -183,7 +183,7 @@ async Task PreloadDynamicPrefabOnServerAndStartLoadingOnAllClients(string guid) m_InGameUI.ClientLoadedPrefabStatusChanged(client, assetGuid.GetHashCode(), loadedGameObject.Result.name, - InGameUI.LoadStatus.Loading); + InGameUI.LoadStatus.Loaded); } } } diff --git a/Basic/DynamicAddressablesNetworkPrefabs/Assets/Scripts/03_Server Authoritative Synchronous Spawning/ServerAuthoritativeSynchronousSpawning.cs b/Basic/DynamicAddressablesNetworkPrefabs/Assets/Scripts/03_Server Authoritative Synchronous Spawning/ServerAuthoritativeSynchronousSpawning.cs index 38d1ed5be..384b6e52b 100644 --- a/Basic/DynamicAddressablesNetworkPrefabs/Assets/Scripts/03_Server Authoritative Synchronous Spawning/ServerAuthoritativeSynchronousSpawning.cs +++ b/Basic/DynamicAddressablesNetworkPrefabs/Assets/Scripts/03_Server Authoritative Synchronous Spawning/ServerAuthoritativeSynchronousSpawning.cs @@ -227,7 +227,7 @@ NetworkObject Spawn(AddressableGUID assetGuid) m_InGameUI.ClientLoadedPrefabStatusChanged(client, assetGuid.GetHashCode(), prefab.Result.name, - InGameUI.LoadStatus.Loading); + InGameUI.LoadStatus.Loaded); } return obj; diff --git a/Basic/DynamicAddressablesNetworkPrefabs/Assets/Scripts/05_API Playground/APIPlayground.cs b/Basic/DynamicAddressablesNetworkPrefabs/Assets/Scripts/05_API Playground/APIPlayground.cs index 431617032..5550b8af6 100644 --- a/Basic/DynamicAddressablesNetworkPrefabs/Assets/Scripts/05_API Playground/APIPlayground.cs +++ b/Basic/DynamicAddressablesNetworkPrefabs/Assets/Scripts/05_API Playground/APIPlayground.cs @@ -246,7 +246,7 @@ async Task PreloadDynamicPrefabOnServerAndStartLoadingOnAllClients(string guid) m_InGameUI.ClientLoadedPrefabStatusChanged(client, assetGuid.GetHashCode(), loadedGameObject.Result.name, - InGameUI.LoadStatus.Loading); + InGameUI.LoadStatus.Loaded); } } } diff --git a/CHANGELOG.md b/CHANGELOG.md index 388015dd5..68af0bc51 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,11 @@ # Change log ## [unreleased] - yyyy-mm-dd -N/A + +### Dynamic Addressables Network Prefabs + +#### Fixed +- Resolved visual bug where the load status of dynamic prefabs on the host was not correct (#111) ## [1.2.1] - 2023-02-17