New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
screen.resolution is expired data. #15973
Comments
screen.resolution is a readonly property, so if you modify its return value directly like /**
* @en Get the current resolution of game.
* This is a readonly property.
* @zh 获取当前游戏的分辨率。
* 这是一个只读属性。
*
* @readonly
*/
public get resolution (): Size {
return screenAdapter.resolution;
} And about |
Yeah I know, I mean director.root.pipeline.shadingScale
screen.resolutionScale
screen.resolution The relationship between these three looks like:
Modifying resolutionScale will cause shadingScale to change, but modifying shadingScale will not, so |
I found I will check this functionality later. |
|
ah, what is the difference between |
|
ah, what is the difference between |
Cocos Creator version
3.8.0
System information
MacOS
Issue description
Modify shadingScale, screen.resolution will not be refreshed.
Relevant error log output
No response
Steps to reproduce
RT.
Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered: