- Home /
Question by
Zygy · Mar 22, 2013 at 04:27 AM ·
gameobjectcolliderlerponmousedown
Can't click on a moving GameObject
I'm not having any issues moving the GameObject. The issue is that when i try clicking on it with OnMouseDown or OnMouseUp nothing happens. I tried using a simple debug statement to see if anything happened and it didn't go off. I know i'm hitting the collider because the stationary GameObject behind it (which does work) didn't give me it's debug statement so i must be hitting the collider but its not running the function.
void OnMouseDown(){
Debug.Log("poke");
}
void Update(){
transform.position = Vector3.Lerp(startpos,finishpos,t);
}
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613094849im_/https://answers.unity.com/themes/thub/images/avi.jpg)