Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: Gav (HeyBud) on September 27, 2018, 04:02:50 PM
-
How can I detect if an object exits a Raycast? I was hoping there would be an On Exit function like other collision detection actions. Sorry if I'm missing something simple.
-
Hi.
Raycast is not really mend to use with on exit that's why raycast does not have a on exit/on enter/ on stay (in unity scripting)
But there is an action called raycast 2 on the Ecosystem (https://hutonggames.fogbugz.com/default.asp?W1181)
that has a 'no hit' event.
But it might be better to use a trigger instead.
-
Thanks for the info!