playMaker

Author Topic: Exit Raycast 2D?[SOLVED]  (Read 1410 times)

Gav (HeyBud)

  • Full Member
  • ***
  • Posts: 126
    • Tumblr
Exit Raycast 2D?[SOLVED]
« 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.

« Last Edit: September 29, 2018, 12:28:27 AM by djaydino »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Exit Raycast 2D?
« Reply #1 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
that has a 'no hit' event.

But it might be better to use a trigger instead.

Gav (HeyBud)

  • Full Member
  • ***
  • Posts: 126
    • Tumblr
Re: Exit Raycast 2D?
« Reply #2 on: September 28, 2018, 02:15:40 PM »
Thanks for the info!