Question by
KUNGERMOoN · Jul 13, 2020 at 10:54 AM ·
camerainstantiateonmousedownonmouseover
OnMouseOver not work when instantiating camera
Hi! I'm trying to instantiate camera for every item in my game. But if I write:
GameObject ItemCamera;
void Start() { ItemCamera = Instantiate(variables.Camera); }
void OnMouseOver () { Debug.log("Something"); }
void OnMouseDown() { Debug.log("Something"); } I don't see "Something" on console when click item
Comment
Your answer
Follow this Question
Related Questions
OnMouseOver and Camera Position Incompatibility 0 Answers
How to attach camera to the instantiated gameobjects sequentially in a for loop using C# script? 0 Answers
Instantiate screenshots from camera *Realtime* 0 Answers
Instantiating object in the wrong place,Instantiate object at mouse point getting wrong coordinates 1 Answer