Skip to content

Fix UI glitch caused in EnforceWindowSize#4

Open
amuuu wants to merge 2 commits into
marijnz:masterfrom
amuuu:master
Open

Fix UI glitch caused in EnforceWindowSize#4
amuuu wants to merge 2 commits into
marijnz:masterfrom
amuuu:master

Conversation

@amuuu

@amuuu amuuu commented Sep 29, 2021

Copy link
Copy Markdown

Window's UI that wanted to constantly be updated in OnGUI, used to be glitchy. It was caused by the code inside EnforceWindowSize. Using the position.Set() instead of copying position into a var and changing values of the var and rewriting it back to position, fixed this problem. Maybe it's because of sth internal in newer Unity editor versions.

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