I am porting my app from Xenko 1.10 to Xenko 2.0.
There is a breaking change between Xenko 1.10 and Xenko 2.0 about Scene Renderer & new Graphic compositor that break my code.
I have in my code several custom renderes that were added "by hand" that way with Xenko 1.10:
public abstract class MyRendererScript : SyncScript
public override void Start()
var compositor = (SceneGraphicsCompositorLayers)SceneSystem.SceneInstance.Scene.Settings.GraphicsCompositor;
int nbRenderers = compositor.Master.Renderers.Count;
compositor.Master.Renderers.Insert(nbRenderers - 1, new SceneDelegateRenderer(Render));
public abstract void Render(RenderDrawContext renderDrawContext, RenderFrame renderFrame);
How to adapt this code to Xenko 2.0?
I found I have to create a BaseSceneRenderer an implement RenderCore instead of using a delegate, but not sure, and does not know how to insert it into the system's renderer list.
Thank you for providing a code, pseudo code or just explanation.