Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  How to select the obi rope by mouse click?
#2
(17-05-2018, 02:58 AM)cowill Wrote: Hi, everyone. I create some obi ropes in my game, then I need select them by mouse click (Input.GetMouseButtonDown) in game window, such like using Physics.Raycast to know whether mouse click on the rope , however the conventional way does not work . Any one help to solve this problem? Thanks a lot.

Hi there,

You can simply raycast against the rope mesh, why wouldn't that work?. You can get a reference to it from its MeshFilter component.
Reply


Messages In This Thread
RE: How to select the obi rope by mouse click? - by josemendez - 17-05-2018, 08:54 AM