struct in UnityEngine.Experimental.UIElements.StyleSheets
/
Implemented in:UnityEngine.UIElementsModule
This generic structure encodes a value type that can come from USS or be specified programmatically.
A StyleValue<T> struct wraps value types such as an integer or a color along with some metadata for the application of USS at runtime.
| nil | This represents the default value for a StyleValue<T> of the according generic type. |
| value | The actual value of the StyleValue<T>. |
| StyleValue_1 | This constructor can be used to specified an alternate default value but it is recommended to use StyleValue<T>.nil. |
| GetSpecifiedValueOrDefault | Utility function to be used when reading custom styles values and provide a default value in one step. |
| Create | Creates a StyleValue of the according generic type directly from a value. |
Did you find this page useful? Please give it a rating: