Documentation

Unity Engine

Download Unity

Unity Engine

ConvertScaleModeToBackgroundSize(ScaleMode)

Converts ScaleMode to the equivalent BackgroundSize property.
Read time 1 minuteLast updated 2 months ago

Definition

public static BackgroundSize ConvertScaleModeToBackgroundSize(ScaleMode scaleMode = ScaleMode.StretchToFill)

Parameters

scaleMode

The ScaleMode to convert.

Returns

Type

Description

BackgroundSizeBackgroundSize.