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

> Resolves the background properties to a valid ScaleMode.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.UIElements](/engine/6000.0/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

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

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

### Parameters

**** (\[BackgroundPosition]\(/engine/6000.0/script-reference/unityengine/uielements/backgroundposition)): The X BackgroundPosition to resolve.**** (\[BackgroundPosition]\(/engine/6000.0/script-reference/unityengine/uielements/backgroundposition)): The Y BackgroundPosition to resolve.**** (\[BackgroundRepeat]\(/engine/6000.0/script-reference/unityengine/uielements/backgroundrepeat)): The BackgroundRepeat to resolve.**** (\[BackgroundSize]\(/engine/6000.0/script-reference/unityengine/uielements/backgroundsize)): The BackgroundSize to resolve.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Indicates whether the background properties resolve to a valid ScaleMode.

### Returns

| Type                                                                  | Description |
| --------------------------------------------------------------------- | ----------- |
| [ScaleMode](/engine/6000.0/script-reference/unityengine/scalemode.md) | ScaleMode.  |
