Yes, as long as you know what components are inside the Zombie scene, then you can export it. But the idea of being more flexible is that you shouldn’t need to update the Zombie class when you add a new component to it. E.g. You want the zombie to be “Bumpable” now (for some reason :)), then you should be able to just add the Bumpable node to your Zombie scene and that’s it. With your approach, you’d need to also reference and export it in the Zombie class first.
@mrsgreenpotato No, I don’t have a Zombie Class :D I just have an Actor. And the components define that it’s a “Zombie”. I’d probably add “Bumpable” as a BumpableComponent or whatever :D
Yes, as long as you know what components are inside the Zombie scene, then you can export it. But the idea of being more flexible is that you shouldn’t need to update the Zombie class when you add a new component to it. E.g. You want the zombie to be “Bumpable” now (for some reason :)), then you should be able to just add the Bumpable node to your Zombie scene and that’s it. With your approach, you’d need to also reference and export it in the Zombie class first.
@mrsgreenpotato No, I don’t have a Zombie Class :D I just have an Actor. And the components define that it’s a “Zombie”. I’d probably add “Bumpable” as a BumpableComponent or whatever :D