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

ResourceEntryDrawer

class 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

Renders the value cell for one IResourceEntry kind within a locale column.

Subclass this and mark the subclass with ResourceEntryDrawerAttribute to add a custom entry kind to the table editor. The drawer builds only the value editor; the window owns the tree structure, the variant child rows, and the per-row action menu. Read ResourceEntryContext.EntryProperty to bind a field to the serialized value, or edit the entry directly and call ResourceEntryContext.MarkDirty.

Additional resources: ResourceEntryDrawerAttribute, ResourceEntryContext, IResourceEntry

Public Methods

Method Description
CreateCell Builds the visual element that edits the entry's value.