Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


BackgroundSize

Script interface for VisualElement background-size style property _backgroundSize.
Read time 1 minuteLast updated 5 days ago

Definition

public struct BackgroundSize : IEquatable<BackgroundSize>

Constructors

Constructor

Description

BackgroundSize(UnityEngine.UIElements.BackgroundSizeType)Create a BackgroundSize using Enum
BackgroundSize(UnityEngine.UIElements.Length,UnityEngine.UIElements.Length)Create a BackgroundSize with x and y repeat

Properties

Property

Description

sizeTypeBackground size type
xBackground size x
yBackground size y