[SOLVED] Programmatic way of adding Entitiy with SpriteComponent to scene

Hi,

I’m trying to find out how to programmatically add some sprites to a scene. I’ve had a look through the documentation and source but I can’t find where spritesheets are loaded from so that I can then instantiate a new Entity, apply the SpriteComponent and add that to the scene.

Many thanks!

Didn’t look at the samples very well, found the answer :).