StyleRatio
Represents a ratio value, denotes the proportion between two unitless values.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Struct
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
- Implements: IStyleValue<Ratio>, IEquatable<StyleRatio>
public struct StyleRatio : IStyleValue<Ratio>, IEquatable<StyleRatio>
Constructors
Constructor | Description |
|---|---|
| StyleRatio(UnityEngine.UIElements.Ratio) | Creates a new Ratio from a float. |
| StyleRatio(UnityEngine.UIElements.StyleKeyword) | Creates a new Ratio from a Keywords. |
Properties
Static Methods
Method | Description |
|---|---|
| Auto | Create a special ratio value that indicate no specific ratio should be used. |