GUI Animation Problem (DEF-3066) (SOLVED)

I have a problem when animating a GUI Button. The code looks something like this :

function init(self)
	msg.post(".", "acquire_input_focus")
	self.button = gui.get_node("button")
end

function on_input(self, action_id, action)
	if action_id == hash("touch") then
		if gui.pick_node(self.button, action.x, action.y) then
			print("Button pressed")
			gui.animate(self.button, "scale", vmath.vector3(0.5, 0.5, 0), gui.EASING_INBACK, 1)
		end
	end
end

The problem is when the animation finished the button doesn’t seem to react to input anymore.
I don’t know if the problem is on my side or not and hope that someone can help me resolve this issue.

I can repro this on my machine. It looks like you are animating the Z component to 0. Animating the Z component to for example 1 instead solves this on my machine.

Not sure what the expected behaviour should be, but since it still renders OK I would assume it should be pickable as well. Added ticket DEF-3066 for this issue.

3 Likes

Thanks that solved the problem.

1 Like

Solved in 1.2.145

1 Like