Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


RegisterType(Type, UxmlAttributeNames[], bool)

Registers pre-processed UXML attribute descriptions.
Read time 1 minuteLast updated 9 days ago

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.