SaveViewState
This function will save (in memory) the current state:
- Camera view - also know as view Matrix (angle, distance, translation, rotation, scale),
- Background Colour,
- Highlight mode enabled,
- Render Animations enabled,
- Render Products enabled,
- Outline enabled.
This function is primarily used in the following scenario:
- When the web app tab is hidden by the browser (for example when the browser is minimized, hidden, deactivated but the browser…), then this function can be called to save the current state
- When the tab is visible again and the connection has been lost, then the RestoreViewState function can be called to restore the previous state.
See the Demo Example
Function
void SaveViewState()
Examples
SYM3.SaveViewState();