ドキュメント

Unity Engine

Unity Engine

BackgroundPropertyHelper

Helper to convert between background properties and ScaleMode.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

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.