Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


AddressMode

Specifies how the gradient is sampled when UV coordinates are outside the [0, 1] range.
Read time 1 minuteLast updated 5 days ago

Definition

public enum AddressMode

Remarks

AddressMode.Wrap repeats the gradient, creating a tiled effect. AddressMode.Clamp extends the edge colors of the gradient beyond the [0, 1] range. AddressMode.Mirror repeats the gradient, but mirrors it at every integer boundary, creating a seamless mirrored tiling.

Fields

Value

Description

ClampExtends the edge colors of the gradient beyond the [0, 1] range.
MirrorRepeats the gradient, but mirrors it at every integer boundary, creating a seamless mirrored tiling.
WrapRepeats the gradient when sampling outside the [0, 1] range, creating a tiled effect.