Component:ListEditor

From Resonite Wiki
Revision as of 21:24, 26 May 2024 by Yosh (talk | contribs) (no longer a stub :D)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Component image 
List Editor component as seen in the Scene Inspector


The ListEditor component is a internal-use component intended to be used to generate UIX for editing an ISyncList.

Fields

Fields
Name Type Description
persistent Bool Determines whether or not this item will be saved to the server.
UpdateOrder Int Controls the order in which this component is updated.
Enabled Bool Controls whether or not this component is enabled.
_targetList ISyncList The list to edit.
_addNewButton Button Button to add a new item to the list.

Usage

When _targetList receives a reference to a list, the ListEditor's slot's children will be populated with items in the list. Each of these child slots will have the name Element. Each slot contains a HorizontalLayout component and RectTransform component.

This component will misbehave when changing the _targetList after it already has a reference, as doing so is unintended behavior.

This component is much less useful than its cousin, BagEditor, as it does not expose any method to reference the list members from in-game. FrooxEngine uses internal code to add references on child slots of the elements when building the Scene Inspector UI.

Examples

See Also