Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed WorldBrowser inability to update world view list #195

Merged
merged 3 commits into from
Sep 17, 2023

Conversation

skelitheprogrammer
Copy link
Contributor

@skelitheprogrammer skelitheprogrammer commented Sep 16, 2023

Found out that WorldBrowser can't capture world count changes. That means that in order to have relevant view information about worlds, you have to re-open or toggle UI Toolkit Live Reload (which does the same procedure as close and open editor window)

From unity docs on OnInspectorUpdate:
OnInspectorUpdate is called at 10 frames per second to give the inspector a chance to update.

Edit:
Found out that view will be updated if user mouseover the window, so I changed to OnFocus. Same result, better performance

@olegmrzv olegmrzv changed the base branch from main to stage-2023.1 September 17, 2023 21:01
@olegmrzv olegmrzv merged commit a1d06e0 into scellecs:stage-2023.1 Sep 17, 2023
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.

2 participants