Attributes

Custom attributes used by the Paragon Editor framework to configure property drawer behavior and bind UXML templates to editor classes.

Architecture

spinner

Usage Flow

spinner

Classes

Class
Description

Controls the indentation level applied by a property drawer

Binds a UXML template asset to a class by name, with lazy loading

Key Concepts

Declarative Drawer Configuration

Both attributes follow a declarative pattern — decorating a class with the attribute configures its behavior without requiring code in the drawer itself. DrawerIndentationAttribute sets an indentation level, while UxmlTemplateAttribute associates a UXML file by name.

Lazy Asset Loading

UxmlTemplateAttribute caches the VisualTreeAsset on first access. The asset is found by searching the AssetDatabase for a VisualTreeAsset matching the specified name, so the UXML file can live anywhere in the project.

Last updated