Skip to content

Resolve root tile event when Tileset has invalid loader#1316

Open
j9liu wants to merge 3 commits intomainfrom
resolve-invalid-loader
Open

Resolve root tile event when Tileset has invalid loader#1316
j9liu wants to merge 3 commits intomainfrom
resolve-invalid-loader

Conversation

@j9liu
Copy link
Contributor

@j9liu j9liu commented Mar 4, 2026

Currently, getRootTileAvailableEvent never fires if the underlying loader is invalid. This happens in cases where invalid asset IDs are passed in, and the loader rightfully prevents itself from making a bogus request.

I ran into this in Unreal because of how statistics work. It requires loading the tileset's metadata schema after the root tile is available. However, if the promise never resolves, then we just keep waiting for something that will never happen. This resulted in the Editor never being able to close a level that was attempting to load inaccessible tileset metadata. Even if no root tile is actually loaded, the event should resolve when it's clear nothing can be loaded (similar to failed URL loads).

@j9liu j9liu added this to the April 2026 Release milestone Mar 4, 2026
@j9liu j9liu requested a review from azrogers March 5, 2026 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant