Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


BackgroundPropertyHelper

Helper to convert between background properties and ScaleMode.
Read time 1 minuteLast updated 12 days ago

Definition

public static class BackgroundPropertyHelper

Remarks

For more information, Refer to Set the scale mode for a background image.

Static Methods

Method

Description

ConvertScaleModeToBackgroundPositionConverts ScaleMode to the equivalent BackgroundPosition property.
ConvertScaleModeToBackgroundRepeatConverts ScaleMode to the equivalent BackgroundRepeat property.
ConvertScaleModeToBackgroundSizeConverts ScaleMode to the equivalent BackgroundSize property.
ResolveUnityBackgroundScaleModeResolves the background properties to a valid ScaleMode.