文档

Unity Engine

Unity Engine

StyleScale

Style value that can be either a Scale or a StyleKeyword.
阅读时间1 分钟最后更新于 1 个月前

Definition

public struct StyleScale : IStyleValue<Scale>, IEquatable<StyleScale>

Constructors

Constructor

Description

StyleScale(UnityEngine.UIElements.Scale)Creates a new StyleScale from a Scale.
StyleScale(UnityEngine.UIElements.StyleKeyword)Creates a new StyleScale from a StyleKeyword.
StyleScale(UnityEngine.Vector2)Creates a new StyleScale from a Vector2.

Properties

Property

Description

keywordThe style keyword.
valueThe Scale value.