Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Gav (HeyBud) on September 27, 2018, 04:02:50 PM

Title: Exit Raycast 2D?[SOLVED]
Post 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.

Title: Re: Exit Raycast 2D?
Post by: djaydino on September 28, 2018, 03:39:19 AM
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.
Title: Re: Exit Raycast 2D?
Post by: Gav (HeyBud) on September 28, 2018, 02:15:40 PM
Thanks for the info!