loodakrawa / SpriterDotNet

A pure C# Spriter implementation
zlib License
220 stars 75 forks source link

unity 2019.2.1 constant hourglass when clicking generated prefabs #119

Open cdxrd opened 4 years ago

cdxrd commented 4 years ago

It appears something may have changed in the editor scripts somewhere in the later versions of unity. In 2019.2.17 for example when clicking on any of the generated prefabs, there is a constant flickering switching back and forth between mouse cursor and hourglass, making it impossible sometimes to manipulate anything since it slows down the editor so much. I have a feeling its something related to spriter checking for updates, but havent delved into it at all.

MattKirk99999 commented 4 years ago

@cdxrd, disable autosave on the prefab (a checkbox in the top-right of the Scene tab). It seems like the generated prefabs are never allowed to stay "saved" -- that is, I think that they are changed immediately after they are saved (probably by the SpriterDotNet code that runs in the editor, but I haven't found the source yet). With autosave on, this creates a loop that gives you the flickering loading/normal cursor.

cdxrd commented 4 years ago

makes it easier in the short term for assigning public variables, etc without the constant flickering / slowdown it causes, but still not a proper fix.