BackgroundPropertyHelper

class in UnityEngine.UIElements

/

Implemented in:UnityEngine.UIElementsModule

Description

Helper to convert between background properties and ScaleMode.

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

Static Methods

Method Description
ConvertScaleModeToBackgroundPosition Converts ScaleMode to the equivalent BackgroundPosition property.
ConvertScaleModeToBackgroundRepeat Converts ScaleMode to the equivalent BackgroundRepeat property.
ConvertScaleModeToBackgroundSize Converts ScaleMode to the equivalent BackgroundSize property.
ResolveUnityBackgroundScaleMode Resolves the background properties to a valid ScaleMode.

Did you find this page useful? Please give it a rating: