Regarding Resolution settings

All about user interface, be it customizing built-in UIs or adding new ones.
Post Reply
bugger
Posts: 14
Joined: 22 Apr 2022 08:10

Regarding Resolution settings

Post by bugger »

Regarding Resolution settings

The settings in TiTLE_UI are saved in Settings.json

but,Resolution settings are not saved in Settings.json and revert back to their original values each time.
Why is this done this way? Is there any way to save them to Settings.json?

A customer asked me if it is a BUG to redo the Resolution setting every time the game is launched.
I can't explain it well. (I wish I could explain why we can't)

Elringus
admin
Posts: 530
Joined: 11 May 2020 18:03

Re: Regarding Resolution settings

Post by Elringus »

Resolution and screen mode are saved by Unity (how exactly depend on the platform) and it's working fine on my side. If you believe there is a bug in Naninovel, please contact the support: https://naninovel.com/support/#naninovel-support

bugger
Posts: 14
Joined: 22 Apr 2022 08:10

Re: Regarding Resolution settings

Post by bugger »

Screen.width Screen.height, will be the changed value, but
refreshRate will revert to the original value.
For example, if you change 1024786 120MHZ to 1024786 60MHZ
After restarting the game, the MHZ setting will revert to 1024*786 120MHZ and the MHZ setting will disappear.
Will the change of MHZ setting be saved in your environment? 

idaot
support
Posts: 263
Joined: 01 Aug 2020 08:25

Re: Regarding Resolution settings

Post by idaot »

That may depend on the platform, if it's not saving then consider making a copy of GameSettingsResolutionDropdown and modify it to store the refresh value in a custom Settings state: https://naninovel.com/guide/state-manag ... stom-state

Post Reply