snozbot / fungus

An easy to use Unity 3D library for creating illustrated Interactive Fiction games and more.
MIT License
1.62k stars 290 forks source link

Block Names and Comments Misaligned in Flowchart #878

Open TheEmbracedOne opened 3 years ago

TheEmbracedOne commented 3 years ago

I am 100% sure this has been reported before, I even remember seeing a post and screenshots about it but for my life I can't find it.

Describe the bug After updating Fungus to 3.13.4, block names in the flowcharts and block comments are misaligned. Comments also seem to be missing the comment background: Unity_o2zysY3Cvx

Reproduction Open the flowchart window on 3.13.4 to observe the issue.

Expected behavior Block names and comments to be aligned like pre-3.13.4: Unity_mTaZFRWnM1

Versions & Platform

TheEmbracedOne commented 3 years ago

This seems to be intermittent; not sure what's causing it but they were consistently misaligned up until now (I've changed nothing in my project, just restarted my PC and happened to open the project afterwards. The block names and comments appear correct as per second image above.

Vaqq commented 3 years ago

I also have encountered this after updating fungus, but it fixes itself after I restart unity.

stevehalliwell commented 3 years ago

Thanks for the report and additional detail y'all. I have seen this but haven't had it persist as I tend to jump between branches and Unity versions and end up restarting the editor during that process. If we can determine that this only occurs during an upgrade or fresh 'install' of Fungus then perhaps we can find a way to force a refresh of the underlying GUIStyles that are causing the issue we detect those circumstances.

TheEmbracedOne commented 3 years ago

@stevehalliwell After updating Fungus I had this issue for several days, restarting Unity didnt do anything, but since yesterday it just fixed itself, for no apparent reason; the only thing that changed is that I regenerated project files. Until yesterday, I did not set my preferred external editor tool to Visual Studio 2019 so the project never generated csproj and sln files.

Because I was preoccupied with fixing another issue, I'm not sure if the block names/comments fixed themselves right after or not, and I'm not sure whether this is unrelated at all or perhaps a clue that could lead to a solution.

stevehalliwell commented 3 years ago

This doesn't seem to be helping narrow it down to a single thing, but it does cement for me that it's related to GUIStyles being invalid or cached improperly.

Just had it caused by switching between branches (dev and audio), resolved itself by simply closing the flowchart window and then reopening it.

Unity version 2019.4.11 Fungus Version 3.13.6 (+develop branch) Editor OS: Win10

TheEmbracedOne commented 1 year ago

Just wanted to add, that I have not experienced this issue even once on 2020.3.3f1 nor 2021.3.9f1, so it might have been a Unity-side issue.