Legacy Documentation: Version 2018.1 (Go to current version)
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.


Suggest a change


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.


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.



public static var eyeTextureResolutionScale: float;
public static float eyeTextureResolutionScale;


Controls the actual size of eye textures as a multiplier of the device's default resolution.

A value of 1.0 will use the default eye texture resolution specified by the XR device. Values less than 1.0 will use lower resolution eye textures, which can possibly improve performance at the expense of a less sharp image. Values greater than 1.0 will use higher resolution eye textures, which can potentially result in a sharper image at the cost of performance and memory.

This will always reallocate eye textures, which can be an expensive operation. For dynamically changing eye render resolution on the fly, consider using XRSettings.renderViewportScale instead.

Did you find this page useful? Please give it a rating: