This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
0 votes

I have an animation applied to UI elements that modulates, scales, and sometimes rotates them slightly as well. This is mainly used for button elements, so you know which button you have selected.

However, the text "jitters" around when hovered over. I think it's snapping to different positions as it gets resized, but I'm not totally sure. What I do know is it's a total headache to look at.

this hurts to look at

I've tried enabling "Filter", "Use Mipmaps", one at a time and both together on the lablel to no effect. I have no pixel snapping in my rendering options either. And, believe it or not, it's actually worse in game- due to the higher framerate.

Anyone encountered this before and have a solution?

Here's the animation being played, for reference:
enter image description here

Godot version 3.2.2 stable
in Engine by (37 points)

I have no idea why the text is jittering. But what if you turn up the speed? Make it scale up and down faster might get rid of the jittering, or make it less noticeable.

It makes it a bit more subtle, but unfortunately it's definitely still headache inducing.

I tried another temporary solution where I rescale the label element continuously based on the buttons scale, but that didn't stop the jittering- it just jittered in the same place.

Theoretically I could change the rect_size for the button directly instead of changing scale. The reason I haven't is because I use this "in focus" animation player for several different types of buttons, and I'd rather fix the core issue at once instead of create object specific workarounds.

1 Answer

+2 votes
Best answer

Looks like it's the result of an engine bug.

See: https://github.com/godotengine/godot/pull/46409
Or: https://github.com/godotengine/godot/issues/28804

For the time being, going to: Project Settings -> GUI -> Common and turning off "Snap Controls To Pixels" fixes it.

by (37 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.