文档

Unity Engine

Download Unity

Unity Engine

BackgroundSizeType

Defines the size of the background.
阅读时间1 分钟最后更新于 1 个月前

Definition

public enum BackgroundSizeType

Fields

Value

Description

ContainResize the background image to make sure the image is fully visible.
CoverResize the background image to cover the entire container, even if it has to stretch the image or cut a little bit off one of the edges.
LengthDetermines if the size of the background image comes from the BackgroundSize.x and BackgroundSize.y length values.