Version: 2018.4
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.

Static 変数

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.

Static 関数

CreateCreates a StyleValue of the according generic type directly from a value.
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961