Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: daniellogin on July 05, 2018, 03:45:20 PM

Title: How to make Raycast visible in game?
Post by: daniellogin 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.
Title: Re: How to make Raycast visible in game?
Post by: djaydino 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 (https://hutonggames.fogbugz.com/default.asp?W1181)) 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.
Title: Re: How to make Raycast visible in game?
Post by: daniellogin 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.