Version: Unity 6 (6000.0)
LanguageEnglish
  • C#

BackgroundPropertyHelper.ResolveUnityBackgroundScaleMode

Declaration

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

Parameters

Description
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

ScaleMode ScaleMode.

Description

Resolves the background properties to a valid ScaleMode.