Version: 2017.3
Experimental: this API is experimental and might be changed or removed in the future.

StyleValue<T0>

struct in UnityEngine.Experimental.UIElements.StyleSheets

매뉴얼로 전환

설명

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.

정적 변수

nilThis represents the default value for a StyleValue<T> of the according generic type.

변수

valueThe actual value of the StyleValue<T>.

생성자

StyleValue_1This constructor can be used to specified an alternate default value but it is recommended to use StyleValue<T>.nil.

Public 함수

GetSpecifiedValueOrDefaultUtility function to be used when reading custom styles values and provide a default value in one step.

정적 함수

CreateCreates a StyleValue of the according generic type directly from a value.