vchelaru / FlatRedBall

Cross-platform 2D game engine focused on ultimate productivity built in .NET
http://flatredball.com
MIT License
414 stars 66 forks source link

SoundEffectInstance without backing file #1621

Closed RychuP closed 2 weeks ago

RychuP commented 2 weeks ago

It is possible to add SoundEffectInstance to an Entity via QuickActions/Add Object which results in invalid code generation.

vchelaru commented 2 weeks ago

Thanks for reporting this. As I see it, the biggest issue here is that you can add a new SoundEffectInstance, then get an error in your project. It's not clear if you are getting an error because of a bug in FlatRedBall, or if you did something wrong. If you did do something wrong, what? And how do you fix it?

To to solve this, I've added more error checking logic in FRB so that you will be told what is wrong:

image

This has been fixed here:

1ab64e98b768d9bbb5d311cc3aae66d9b66c7fe9