AssetEntryEditorAttribute
Associates an asset entry editor with the asset entry type it edits.
Read time 3 minutesLast updated 11 days ago
Definition
- Type: Class
- Namespace: Unity.Localization.Editor
- Assembly: UnityEditor
- Inherits from: Attribute
[AttributeUsage(AttributeTargets.Class)]public sealed class AssetEntryEditorAttribute : Attribute
Remarks
Apply this attribute to a class that implements IAssetEntryEditor to register it for a concrete asset entry type. The Resource Tables window discovers the editor through TypeCache, so a custom asset entry kind appears in the table editor with no manual registration. Register one editor per entry type; the editor for the nearest base type is used when no exact match exists.
Additional Resources: IAssetEntryEditor, IAssetEntry
Constructors
Constructor | Description |
|---|---|
| AssetEntryEditorAttribute(System.Type) | Associates the editor with an asset entry type. |
Properties
Property | Description |
|---|---|
| EntryType | The asset entry type this editor serves. |