文档

Unity Engine

Unity Engine

BackgroundSize

Script interface for VisualElement background-size style property BackgroundSize.
阅读时间1 分钟最后更新于 1 个月前

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