File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change 1
1
# Change Log
2
2
3
+ ## ? - ?
4
+
5
+ ##### Fixes :wrench :
6
+
7
+ - Fixed a bug that could cause a crash when reloading a scene or tileset repeatedly.
8
+
3
9
## v1.15.4 - 2025-03-03
4
10
5
11
##### Fixes :wrench :
Original file line number Diff line number Diff line change @@ -920,6 +920,15 @@ UnityPrepareRendererResources::prepareInLoadThread(
920
920
.thenInMainThread (
921
921
[asyncSystem, tileset = this ->_tilesetGameObject ](
922
922
IntermediateLoadThreadResult&& workerResult) mutable {
923
+ if (tileset == nullptr ) {
924
+ // Tileset GameObject was deleted while we were loading a tile
925
+ // (possibly play mode was exited or another cause).
926
+ return asyncSystem.createResolvedFuture (
927
+ TileLoadResultAndRenderResources{
928
+ std::move (workerResult.tileLoadResult ),
929
+ nullptr });
930
+ }
931
+
923
932
bool shouldCreatePhysicsMeshes = false ;
924
933
bool shouldShowTilesInHierarchy = false ;
925
934
You can’t perform that action at this time.
0 commit comments