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

ResourceEntryContext

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

Carries the state and callbacks a ResourceEntryDrawer needs while it builds a value cell.

The window creates one of these per cell and passes it to ResourceEntryDrawer.CreateCell. Bind a field to ResourceEntryContext.EntryProperty for free undo and redo when it is set; otherwise edit the entry directly and call ResourceEntryContext.MarkDirty. Call ResourceEntryContext.Rebuild after a change that alters the row's structure.

Additional resources: ResourceEntryDrawer

Properties

Property Description
EntryProperty The serialized array element for this entry, for binding, or null when it is unavailable.
MarkDirty Marks the table dirty after a value change made outside a serialized-property binding.
Rebuild Rebuilds the tree after a change to the entry's structure.
Table The table whose locale value this cell edits.