# RegisterType(Type, UxmlAttributeNames[], bool)

> Registers pre-processed UXML attribute descriptions.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.UIElements](/engine/6000.7/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

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

### Parameters

**** (\[Type]\(https\://learn.microsoft.com/dotnet/api/system.type)): The type to register.**** (\[UxmlAttributeNames\[]]\(/engine/6000.7/script-reference/unityengine/uielements/uxmlattributenames)): The pre-processed UXML attribute information.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Indicates whether the type is editor-only.

### Remarks

This is used by the code generator when a control is using [UxmlElementAttribute](/engine/6000.7/script-reference/unityengine/uielements/uxmlelementattribute.md) and [UxmlAttributeAttribute](/engine/6000.7/script-reference/unityengine/uielements/uxmlattributeattribute.md).
