Hi, I am setting an entities render layer like so:
var countLayer = this.app.scene.layers.getLayerByName('CountedLayer');
entity.render.layers = [countLayer.id];//Trying to bind current color buffer as a texture.error
But I get the error: ‘Trying to bind current color buffer as a texture’.
Oddly, I am doing exactly the same thing in another script (setting an entities layer to the same counte layer and that works fine.)
Not sure what the cause may be. Are you rendering anywhere a render target on a camera that renders on that layer? Try sharing a sample project if possible, that may help troubleshoot this.
Hmm, try doing a search in the forums with your exact topic title, that error. There has been a number of similar posts around, in case you something sticking out.
Another clue, if I disable my debug preview camera (cam_preview), I don’t get the error. Im using this camera to try to show what the renderTexture looks like…but maybe the material.update() for this is causing issues?