Sprite Render not working

Having issue getting the sprite render to work.
I can get the texturerender to work, but not the sprite.

Been going thru the sample projects, and seem to have run out of things i may have missed.

In the studio, everything looks to be setup the same as jumpyjet sample.
Have an entity, spritegroup(with 4 items). the entity is ref the spritegroup.
The entity has a sprite component and transformation component.

In my LoadContent i have

        agentEntity = Asset.Load<Entity>("my_entity");
        agentGroup = Asset.Load<SpriteGroup>("my_spritegroup");
        agentSpriteRegion = agentGroup.Images.First().Region;
        Entities.Add(agentEntity);
       Script.Add(GameScript1);

I’ve tried all kinds of stuff with the TransformationCompoent and SpriteComponent, no success.

I really want to use the SpriteRenedering over the texture rendering, so i know i can do it the other way, if i have to.

Not sure how the texture and font reneders worked.
I got the Sprites to finally show.

added.

 private Entity camera;

In the LoadContent Func

    camera = new Entity("Camera") { new CameraComponent { UseProjectionMatrix = true, ProjectionMatrix = SpriteBatch.CalculateDefaultProjection(VirtualResolution) } };
    Entities.Add(camera);

In the CreatePipeline func

    var cameraSetter = new CameraSetter(Services) { Camera = camera.Get<CameraComponent>() };
    RenderSystem.Pipeline.Renderers.Add(cameraSetter);

Seems good, glad you could figure it out.

Since beta04, there was this change, from release note:

  • Engine: Unified 2D and 3D rendering: SpriteRenderer now works with custom matrices or camera.
  • Engine: SpriteRenderer now requires a valid camera to be set in the pipeline.

Samples were updated to reflect this.