Skip to content

Commit 0d86862

Browse files
fix: dynamic prefabs loaded status correctly shown on host (#111)
* loaded status shown correctly on host * changelog update
1 parent 8d9876a commit 0d86862

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

Basic/DynamicAddressablesNetworkPrefabs/Assets/Scripts/02_Server Authoritative Load All Async/ServerAuthoritativeLoadAllAsync.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ async Task PreloadDynamicPrefabOnServerAndStartLoadingOnAllClients(string guid)
183183
m_InGameUI.ClientLoadedPrefabStatusChanged(client,
184184
assetGuid.GetHashCode(),
185185
loadedGameObject.Result.name,
186-
InGameUI.LoadStatus.Loading);
186+
InGameUI.LoadStatus.Loaded);
187187
}
188188
}
189189
}

Basic/DynamicAddressablesNetworkPrefabs/Assets/Scripts/03_Server Authoritative Synchronous Spawning/ServerAuthoritativeSynchronousSpawning.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ NetworkObject Spawn(AddressableGUID assetGuid)
227227
m_InGameUI.ClientLoadedPrefabStatusChanged(client,
228228
assetGuid.GetHashCode(),
229229
prefab.Result.name,
230-
InGameUI.LoadStatus.Loading);
230+
InGameUI.LoadStatus.Loaded);
231231
}
232232

233233
return obj;

Basic/DynamicAddressablesNetworkPrefabs/Assets/Scripts/05_API Playground/APIPlayground.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ async Task PreloadDynamicPrefabOnServerAndStartLoadingOnAllClients(string guid)
246246
m_InGameUI.ClientLoadedPrefabStatusChanged(client,
247247
assetGuid.GetHashCode(),
248248
loadedGameObject.Result.name,
249-
InGameUI.LoadStatus.Loading);
249+
InGameUI.LoadStatus.Loaded);
250250
}
251251
}
252252
}

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
# Change log
22

33
## [unreleased] - yyyy-mm-dd
4-
N/A
4+
5+
### Dynamic Addressables Network Prefabs
6+
7+
#### Fixed
8+
- Resolved visual bug where the load status of dynamic prefabs on the host was not correct (#111)
59

610
## [1.2.1] - 2023-02-17
711

0 commit comments

Comments
 (0)