Friday, January 16, 2026
spot_img

(3.8.8) (web-mobile) Does Cocos Creator help scale match 3D contents for each width and top? – Cocos Creator


For instance, I wish to create a sport with 3D contents run on browsers, and I would like the content material to scale match for each the width and top, however after I creates a 3D helloworld pattern challenge and in addition tick each ‘match width’ and ‘match top’, the sport display appears simply scale match the peak solely, however not the width, is it the restriction of the sport engine or I must set one thing to let the 3D content material match each width and top?

To clarify clearer, what I attempt to do at the moment: create a helloworld 3D challenge, then tick each ‘match width’ and ‘match top’:

Then construct the sport with ‘web-moble’ and run on browsers, after I alter the peak of the window in order that the window is shorter than the designed top, the 3D content material scales down usually:

however when I attempt to alter the width, the 3D content material didn’t change the size, however appears alter the seen space solely:

I would like the 3D content material to scale match the present window dimension routinely as an alternative of fixing the dimensions of seen space, each for the width and top (ie:when both window top is smaller than designed top or window width is smaller than designed width, the content material could be scaled down at each instances), is there any methods to attain this impact with Cocos Creator?

Word: I would like each width and top of the 3D content material to scale match routinely based on the window dimension, at first I exploit model 2.4.5 and located it scale matches on top solely, therefore I strive model 3.8.8 and the impact nonetheless exists, which I don’t know if it’s a bug or design function…

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisement -spot_img

Latest Articles