currently running into a weird issue.
Imagine you have this code:
private bool Mouse0Pressed = false;
public void Update()
{
if(Input.GetMouseButtonDown(0))
{
Mouse0Pressed = true;
}
if(Input.GetMouseButtonUp(0))
{
Mouse0Pressed = false;
}
}
In some random situations ( 1 out of ~100) Mouse0Pressed stays true after i release the mouse button. Interesting enough Input.GetMouseButton(0) also returns true in that case which implies to me that Unity missed the MouseButtonUp event. Both states reset to the correct value if i do another click but stay true until then.
Does anyone know if this is a known issue? could not find any info on that. Kind of lost in that regard.