---
title: RegisterType(Type, UxmlAttributeNames[], bool)
product: Unity Editor
version: '7000.0'
latest_version: '7000.0'
status: This page documents version 7000.0. The latest version is 7000.0.
canonical: https://docs.unity.com/en-us/engine/7000.0/script-reference/unityengine/uielements/uxmldescriptioncache/registertype
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unityengine/uielements/uxmldescriptioncache/registertype.md
last_updated: 2026-10-07
generated_at: 2026-11-12T18:01:33.722Z
locale: en-us
---

# RegisterType(Type, UxmlAttributeNames[], bool)

> Registers pre-processed UXML attribute descriptions.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.UIElements](/engine/7000.0/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/7000.0/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/7000.0/script-reference/unityengine/uielements/uxmlelementattribute.md) and [UxmlAttributeAttribute](/engine/7000.0/script-reference/unityengine/uielements/uxmlattributeattribute.md).
