playMaker

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

Gav (HeyBud)

  • Full Member
  • ***
  • Posts: 117
    • View Profile
    • Tumblr
Exit Raycast 2D?[SOLVED]
« on: September 27, 2018, 01: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 28, 2018, 09:28:27 PM by djaydino »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 4582
    • View Profile
    • jinxtergames
Re: Exit Raycast 2D?
« Reply #1 on: September 28, 2018, 12: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: 117
    • View Profile
    • Tumblr
Re: Exit Raycast 2D?
« Reply #2 on: September 28, 2018, 11:15:40 AM »
Thanks for the info!