Stride Forums Archive

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

2 posts, 1381 views, 2015-07-28 to 2015-07-29

AlistairClark (Alistair Clark) 2015-07-28 #1

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!

AlistairClark (Alistair Clark) 2015-07-29 #2

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