Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


UpdateEyeTextureMSAASetting()

Recreates the XR platform's eye texture swap chain with the appropriate anti-aliasing sample count. The reallocation of the eye texture will only occur if the MSAA quality setting's sample count is different from the sample count of the current eye texture. Reallocations of the eye textures will happen at the beginning of the next frame. This is an expensive operation and should only be used when necessary.
Read time 1 minuteLast updated 10 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine.XR
  • Assembly: UnityEngine.XRModule
Warning
Deprecated. XRDevice.UpdateEyeTextureMSAASetting is deprecated. Update your code to use XRDisplaySubsystem.SetMSAALevel() instead, passing the desired MSAA level.
public static void UpdateEyeTextureMSAASetting()