Asse83
March 23, 2010, 9:27am
1
Hey,
I’ve noticed that within the FixedFunction() sometimes GetButtonDown() accidentally returns false.
I’m currently using GetButton() since this will return true at least in the next frame but this shouldn’t be the final solution.
Any ideas how to fix this or do I have to write a workaround?
tomvds
March 23, 2010, 9:45am
2
Hey,
I’ve noticed that within the FixedFunction() sometimes GetButtonDown() accidentally returns false.
I’m currently using GetButton() since this will return true at least in the next frame but this shouldn’t be the final solution.
Any ideas how to fix this or do I have to write a workaround?
Since FixedUpdate (I assume that that is the function you meant) isn’t called every single frame, it will miss occasional button up/down events. To capture such events, place your input handling code in Update() instead.
Asse83
March 23, 2010, 9:49am
3
That’s what I feared, thanks for the confirmation!