Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


IAssetEntryEditor

Edits one kind of localized asset entry in the Resource Tables window.
Read time 1 minuteLast updated 12 days ago

Definition

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

AssetTypeThe object type the field accepts.
KindLabelA short label for the storage kind, shown as a row indicator and in the Add Entry menu.
KindTooltipA one-line explanation of how the kind stores and loads its asset, shown as the row indicator's tooltip.

Methods

Method

Description

CreateDefaultFieldBuilds the field that edits the entry's default value.
CreateVariantFieldBuilds the field that edits one variant value of the entry.