文档

Unity Engine

Unity Engine

RegisterType(Type, UxmlAttributeNames[], bool)

Registers pre-processed UXML attribute descriptions.
阅读时间1 分钟最后更新于 1 个月前

Definition

public static void RegisterType(Type type, UxmlAttributeNames[] attributeNames, bool isEditorOnly = false)

Parameters

type

The type to register.

attributeNames

The pre-processed UXML attribute information.

isEditorOnly

Indicates whether the type is editor-only.

Remarks

This is used by the code generator when a control is using UxmlElementAttribute and UxmlAttributeAttribute.