Playmaker Forum

Bug Reporting => Playmaker Bug Reporting => Topic started by: roqoloqo on August 23, 2018, 09:54:36 PM

Title: Load Scene Asynch Action "Scene not found Event " not working
Post by: roqoloqo on August 23, 2018, 09:54:36 PM
when using the action Load Scene Asynch, if the scene doesnt exists, it should trigger the Scene Not Found Event, but instead, it hangs and the event is never triggered.

For the moment, i fixed it using Load Level (which Failed Event does work), but I would prefer maintain the consistency and use the Scene method.

I'm using Playmaker 1.9.0p4 and Unity 2017.2.1f1

Thanks!
Title: Re: Load Scene Asynch Action "Scene not found Event " not working
Post by: jeanfabre on August 24, 2018, 12:17:55 AM
Hi,

 Good catch. It's fixed and will be available in the next release, meanwhile, you can get the fixed action here:

http://hutonggames.com/playmakerforum/index.php?topic=19310.0

 Bye,

 Jean
Title: Re: Load Scene Asynch Action "Scene not found Event " not working
Post by: roqoloqo on August 24, 2018, 06:06:46 AM
It works! Thanks!

Now, I dont know if intended or not, but it still makes a break point and throws an error. (and sets the editor on pause, even when i dont have Error Pause enabled)

The Load Level failed event does not throw an error when the scene is not found, it only triggers the not found event.

I think it should not throw an error if I'm counting on the scene not found event to trigger something else. But i'm not entirely sure.
Title: Re: Load Scene Asynch Action "Scene not found Event " not working
Post by: jeanfabre on August 24, 2018, 10:18:16 AM
Hi,

 yes, that's an unfortunate issue with Unity itself, it's impossible to turn it off or even catch it within a try/catch to suppress the error. It's really a bummer, but a known issue.

 Bye,

 Jean
Title: Re: Load Scene Asynch Action "Scene not found Event " not working
Post by: roqoloqo on August 24, 2018, 01:27:00 PM
Bummer, but thanks for the reply Jean!