Version: Unity 6.7 Alpha (6000.7)
LanguageEnglish
  • C#

IAssetEntryEditor

interface in Unity.Localization.Editor

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Edits one kind of localized asset entry in the Resource Tables window.

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.

Public 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.