文档

Unity Engine


Unity Engine


Repeat

Defines how the background is repeated.
阅读时间1 分钟最后更新于 1 个月前

Definition

public enum Repeat

Fields

Value

Description

NoRepeatThe background-image isn't repeated. The image is only shown once. This is the default to keep background compatibility with unity-background-scale-mode.
RepeatThe background image is repeated both vertically and horizontally. The last image will be clipped if it doesn't fit.
RoundThe background-image is repeated and squished or stretched to fill the space (no gaps).
SpaceThe background-image is repeated as much as possible without clipping. The first and last image is pinned to either side of the element, and whitespace is distributed evenly between the images.