Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ResolveUnityBackgroundScaleMode(BackgroundPosition, BackgroundPosition, BackgroundRepeat, BackgroundSize, out bool)

Resolves the background properties to a valid ScaleMode.
Read time 1 minuteLast updated 13 days ago

Definition

ResolveUnityBackgroundScaleMode(BackgroundPosition, BackgroundPosition, BackgroundRepeat, BackgroundSize, bool)

public static ScaleMode ResolveUnityBackgroundScaleMode(BackgroundPosition backgroundPositionX, BackgroundPosition backgroundPositionY, BackgroundRepeat backgroundRepeat, BackgroundSize backgroundSize, out bool valid)

Parameters

backgroundPositionX

The X BackgroundPosition to resolve.

backgroundPositionY

The Y BackgroundPosition to resolve.

backgroundRepeat

The BackgroundRepeat to resolve.

backgroundSize

The BackgroundSize to resolve.

valid

Indicates whether the background properties resolve to a valid ScaleMode.

Returns

Type

Description

ScaleModeScaleMode.