Hey there,
I’m new to GDevelop and I can’t find the way to resize the Canvas (Camera) via JavaScript code.
The JS Runtime Documentation mentions “gdjs.RuntimeGamePixiRenderer” which got a Method setSize to change the size of the current canvas but I simply can’t use the RuntimeGamePixiRenderer somehow.
I tried so far:
gdjs.RuntimeGamePixiRenderer;
var m_canvas = gdjs.RuntimeGamePixiRenderer;
var m_canvas = gdjs.RuntimeGamePixiRenderer();
var m_canvas = gdjs.RuntimeGame; and then on the next line: m_canvas.prototype.setSize();
Here ist the link to the Documentation i mean: Click
I hope someone can help me…