Version: 2022.3
LanguageEnglish
  • C#

WebGLPowerPreference

enumeration

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

An enum containing different power preference hints for the WebGL context.

This enum is used within the WebGL platform to hint to the underlying WebGL implementation how to choose its GPU configuration in multi-gpu systems.

Properties

DefaultThe WebGL implementation is left to decide which GPU configuration is most suitable.
LowPowerRequests the WebGL implementation prioritizes power savings.
HighPerformanceRequests the WebGL implementation prioritizes rendering performance.