ResourceEntryDrawerAttribute
Associates a ResourceEntryDrawer with the entry type it renders.
Read time 3 minutesLast updated 7 days ago
Definition
- Type: Class
- Namespace: Unity.Localization.Editor
- Assembly: UnityEditor
- Inherits from: Attribute
[AttributeUsage(AttributeTargets.Class)]public sealed class ResourceEntryDrawerAttribute : Attribute
Remarks
Apply this attribute to a ResourceEntryDrawer subclass to register it for a concrete IResourceEntry type. The Resource Tables window discovers the drawer through TypeCache, so a custom entry kind renders its value cell with no manual registration. The drawer for the nearest base type is used when no exact match exists.
Additional Resources: ResourceEntryDrawer, IResourceEntry
Constructors
Constructor | Description |
|---|---|
| ResourceEntryDrawerAttribute(System.Type) | Associates the drawer with an entry type. |
Properties
Property | Description |
|---|---|
| EntryType | The entry type this drawer renders. |