IAssetEntryEditor
Edits one kind of localized asset entry in the Resource Tables window.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Interface
- Namespace: Unity.Localization.Editor
- Assembly: UnityEditor
public interface IAssetEntryEditor
Remarks
Implement this interface and mark the implementation with AssetEntryEditorAttribute to add a custom asset entry kind to the table editor. The implementation builds the field that edits an entry's value and supplies the labels the window shows for the kind. The stored asset reference lives on the entry itself, so there is no separate registry to keep in sync. The built-in kinds store a direct object reference or a Resources path; a custom implementation stores its asset however it needs.
Additional Resources: AssetEntryEditorAttribute, IAssetEntry
Properties
Property | Description |
|---|---|
| AssetType | The object type the field accepts. |
| KindLabel | A short label for the storage kind, shown as a row indicator and in the Add Entry menu. |
| KindTooltip | A one-line explanation of how the kind stores and loads its asset, shown as the row indicator's tooltip. |
Methods
Method | Description |
|---|---|
| CreateDefaultField | Builds the field that edits the entry's default value. |
| CreateVariantField | Builds the field that edits one variant value of the entry. |