ResourceEntryContext
Carries the state and callbacks a ResourceEntryDrawer needs while it builds a value cell.
Read time 1 minuteLast updated 7 days ago
Definition
- Type: Class
- Namespace: Unity.Localization.Editor
- Assembly: UnityEditor
public sealed class ResourceEntryContext
Remarks
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 |
| 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. |