this code is on a 3D model that has a capsule collider on it.
void OnMouseDown()
{
if(Input.GetMouseButton(1))
print("rmb");
if(Input.GetMouseButton(0))
print("lmb");
if(Input.GetMouseButton(2))
print("mmb");
}
the only print statement that works when I am over the model is the “lmb”.
I have my rmb and mmb set up correctly as I briefly moved this chunk of code in the update statement and all print statements worked, (just don’t need to be over the model)
Any suggestions?