- Home /
BlockingObject in Canvas of MobileSingleStickControl not work
Hello, My work is simply add a cube on scene,and attached it with a script liked this: void Update() { if intput.getmousebuttondowsn(0) { do(); } }
then I draged MobileSingleStickControl in scene,and added a event system.
I found that when i drag the joystickpad of MobileSingleStickControl
the do(); is called.
so I just set BlockingObject in MobileSingleStickControl canvas to "everything"
but nothing works.. do() is still called.
so,how can I make my clickevent only occur on the UI canvas?
Your answer
Follow this Question
Related Questions
Canvas Graphics raycaster, prevent 2d and 3d physic raycast 0 Answers
4.6 UI Canvas is smaller than normal 1 Answer
Animation not playing on game object activated by script 3 Answers
[CANVAS] Coordinate transfer with scaling (pictures+details) 2 Answers
Custom Dropdown Sorting Order problem 2 Answers