BackgroundPosition
Script interface for VisualElement background-position style property IStyle.backgroundPositionX and IStyle.backgroundPositionY.
阅读时间1 分钟最后更新于 20 天前
Definition
- Type: Struct
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
- Implements: IEquatable<BackgroundPosition>
public struct BackgroundPosition : IEquatable<BackgroundPosition>
Fields
Constructors
Constructor | Description |
|---|---|
| BackgroundPosition(UnityEngine.UIElements.BackgroundPositionKeyword) | Initialize from single position type |
| BackgroundPosition(UnityEngine.UIElements.BackgroundPositionKeyword,UnityEngine.UIElements.Length) | Initialize from x position type with x offset |