|
Hi to all)) I use if(Physics.Raycast(ray, out hit, 4.0f)){ for placing or delete block on screen position touch. But even if i touch my Joystick or another button, raycast delete block when i touch my Joystick. I allready try to use LayerMask but with no succes How can i ignore my Joystick from RayCasting? Can any one help me with this? Here the part of my code: Please some one help me figure it out. I search this forum, and find some answer, but it didnt help me( I update code to use Touch Input, but problem is still.
(comments are locked)
|
|
I made it by miself) Here Solution:
(comments are locked)
|
|
I made it by miself)) Here solution: if (leftJoy.HitTest( Input.mousePosition )) {
(comments are locked)
|
