Setting
Description of the setting
field¶
interface SettingState {
highQuality: boolean
antiAliasing: boolean
adaptiveFramerate: boolean
hideTriggers: boolean
hideAvatars: boolean
settings: any
}
highQuality
¶
Updated by: UI
Data model¶
Enable the "High Quality" mode in the Player.
Examples¶
Enable the "High Quality" mode¶
antiAliasing
¶
Updated by: UI
Enable the Anti-Aliasing in the Player.
Data model¶
Examples¶
Enable the Anti-Aliasing¶
adaptiveFramerate
¶
Updated by: UI
Enable the "Adaptive Framerate" setting in the Player.
Data model¶
Examples¶
Enable the "Adaptive Framerate" mode¶
hideTriggers
¶
Updated by: UI
Change the "Hide triggers" setting in the Player.
Data model¶
Examples¶
Hide the triggers¶
hideAvatars
¶
Updated by: UI
Change the "Hide avatars" setting in the Player.
Data model¶
Examples¶
Hide the avatars¶
settings
¶
Updated by: UI/Player
Set by the Player to communicate the internal settings
of the Player to the
UI during the initialization of the communication between the Player and the
UI.
The settings are directly loaded from the application settings.
Data model¶
Example¶
Set the application URL¶
{
"setting": {
"settings": {
"general": {
"app url": "https://smartshape.io.test"
...
}
...
}
...
}
...
}
Operations done by the Player¶
When the Player is initialized, it sends its settings to the UI.
Here are the kind of operations done by the Player when loading the settings:
[
{
"op": "remove",
"path": "/setting/settings"
},
{
"op": "add",
"path": "/setting/settings",
"value": { ... }
},
{
"op": "replace",
"path": "/setting/settings/general/app url",
"value": "https://smartshape.io.test"
}
]
When the application URL is changed from the UI, the Player resolves the redirections and sets the resolved URL back:
[
{
"op": "replace",
"path": "/setting/settings/general/app url",
"value": "https://smartshape.io.test"
}
]