Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


MirrorOnce

Mirrors the texture once, then clamps to edge pixels.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Field
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
MirrorOnce = 3

Remarks

This effectively mirrors the texture around zero UV coordinates, and repeats edge pixel values when outside of [-1..1] range.
This mode is called "mirror and clamp to edge" in graphics APIs like Vulkan, Metal and OpenGL. This feature is not always supported when using OpenGL ES and Vulkan graphics APIs, specifically on ARM and Qualcomm GPUs platforms. Check SystemInfo.supportsTextureWrapMirrorOnce to figure out whether the system is capable..