playMaker

Author Topic: How to make Raycast visible in game?  (Read 3210 times)

daniellogin

  • Full Member
  • ***
  • Posts: 215
How to make Raycast visible in game?
« on: July 05, 2018, 03:45:20 PM »
I want to be able to switch on and off the in-game visibility of a raycast. How is this done?

All I can find is the debug option in the raycast, which seems to only show in the editor screen and not in game.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: How to make Raycast visible in game?
« Reply #1 on: July 05, 2018, 05:15:34 PM »
Hi.
There is no in-game visibility from a raycast.
But you can use draw line (on Ecosystem) i believe to make a line from point a to point be
or draw debug ray/line

you will need to get the start of they ray and the end.

daniellogin

  • Full Member
  • ***
  • Posts: 215
Re: How to make Raycast visible in game?
« Reply #2 on: July 06, 2018, 04:28:35 AM »
Ok thanks I will look in to that.

Being impatient, I set up a dodgy replacement. I'm simply using a long thin cylinder pointing straight out of the same object the ray is casting from.