You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to be able to set the height of the final canvas (displayed with AnimationPlayer) from my scene parameters.
Currently, I change the height of the view based on several variables (view.height(squareSize + 2 * margin + 2 * jump);) but the size of the final canvas doesn't change and makes a transparent and unwanted padding.
It seems that this is controlled by the project size and by updating the meta-file (size property) it works.
But I want to control this height according to my variables and not hard-code the canvas size.
The advantage of this is to have a more flexible way of changing the size of the rendering canvas when using the AnimationPlayer integrated into a website (I'm on Docusaurus).
One possible solution would be to have another method similar to makeScene2D but which could return the desired canvas size.
If it's really project-related and it's not possible to change this, one possibility would be to be able to create a project that contains only one scene and have custom settings and access to the canvas size in this particular case.
Image of unwanted transparent padding on the final canvas :
The text was updated successfully, but these errors were encountered:
I'd like to be able to set the height of the final canvas (displayed with AnimationPlayer) from my scene parameters.
Currently, I change the height of the view based on several variables (
view.height(squareSize + 2 * margin + 2 * jump);
) but the size of the final canvas doesn't change and makes a transparent and unwanted padding.It seems that this is controlled by the project size and by updating the meta-file (size property) it works.
But I want to control this height according to my variables and not hard-code the canvas size.
The advantage of this is to have a more flexible way of changing the size of the rendering canvas when using the AnimationPlayer integrated into a website (I'm on Docusaurus).
One possible solution would be to have another method similar to makeScene2D but which could return the desired canvas size.
If it's really project-related and it's not possible to change this, one possibility would be to be able to create a project that contains only one scene and have custom settings and access to the canvas size in this particular case.
Image of unwanted transparent padding on the final canvas :
The text was updated successfully, but these errors were encountered: