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

IUxmlAttributes

interface in UnityEngine.Experimental.UIElements

매뉴얼로 전환

설명

This type allows UXML attribute value retrieval during the VisualElement instantiation. An instance will be provided to the factory method - see UXMLFactoryAttribute.

Public 함수

GetPropertyBoolReturn the value of an attribute as a bool, or the defaultValue if the property is not found.
GetPropertyColorReturn the value of an attribute as a Color, or the defaultValue if the property is not found.
GetPropertyDoubleReturn the value of an attribute as a double, or the defaultValue if the property is not found.
GetPropertyEnumReturn the value of an attribute as a T, or the defaultValue if the property is not found.
GetPropertyFloatReturn the value of an attribute as a float, or the defaultValue if the property is not found.
GetPropertyIntReturn the value of an attribute as an int, or the defaultValue if the property is not found.
GetPropertyLongReturn the value of an attribute as a long, or the defaultValue if the property is not found.
GetPropertyStringReturn the value of an attribute as a string, or the defaultValue if the property is not found.
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961