Input.GetMouseButtonDown registering twice

Hi, I have a gun that instantiates a bullet upon left click, but it instantiates 2 times per click. Some answers show that putting it in Update causes this, so I moved it to FixedUpdate and still the same thing. Any help is appreciated.

EDIT:

Also, does anyone know how to stop the bullet in my game thats being instantiated because of the run game click? :slight_smile:

1 Like

It has nothing to do with update functions, itโ€™s probably because youโ€™ve attached the same script to 2 gameobjects.

Just for future readers Iโ€™ m having the same issue. Reading input in Update (like GetButtonDown) causes double input read in FixedUpdate since in may be two fixed calls for one frame. Oddly not many people are mentioning that :/,