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

Force the hierarchy icon list to refresh when a script a is loaded/ch… #672

Merged

Conversation

stevehalliwell
Copy link
Collaborator

…anged, fixes delay when icons disappear after a code change is made by no change is made in Unity itself.

…anged, fixes delay when icons disappear after a code change is made by no change is made in Unity itself.
@chrisgregan
Copy link
Contributor

I'm not familiar with this issue - how can I replicate getting the icons to dissappear?

@stevehalliwell
Copy link
Collaborator Author

Found in 2017.2 & 2017.3 unsure if it persists beyond those.

With a scene open in Unity that has Flowcharts in it.
Add a new c# script to project.
Open that script in VS or similar.
Make a new script or a script change, anything that causes a recompile.
Switch back to Unity.
Touch nothing.
Unity will recompile and the fungus hierarchy icons will disappear.

Suspected cause;
Unity is correctly recreating the static Hierarchy Icons instance and notifying it do draw the elements but it does not resend the changed message on script changes.

Solution;
Keep track of the reload scripts ourselves and when detected, invalidate our fungus object cache.

@chrisgregan chrisgregan merged commit f55d044 into snozbot:master May 25, 2018
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