Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


BackgroundSizeType

Defines the size of the background.
Read time 1 minuteLast updated 7 days ago

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.