StyleRatio
Represents a ratio value, denotes the proportion between two unitless values.
Read time 1 minuteLast updated 6 days ago
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. |