Lemmings
Remappable Gestures For Unity
Loading...
Searching...
No Matches
Lemmings.UI.UIDataRow< T > Class Template Referenceabstract

Base for any UI row that binds a model of type T. Handles subscription lifecycle; subclasses implement UpdateUI. More...

Inherits MonoBehaviour.

Inherited by Lemmings.UI.LemmingUIRemappingMetricOption.

Public Member Functions

virtual void Bind (T data)
 Called by your controller to bind this row to new data.

Protected Member Functions

virtual void Subscribe ()
 Hookup any model events here (e.g. OnDatumUpdated).
virtual void Unsubscribe ()
 Tear down any event handlers here.
void UpdateUI ()
 Populate your Text/Dropdown/etc. based on _data.

Protected Attributes

_data

Private Member Functions

void OnDestroy ()

Detailed Description

Base for any UI row that binds a model of type T. Handles subscription lifecycle; subclasses implement UpdateUI.

Member Function Documentation

◆ Subscribe()

virtual void Lemmings.UI.UIDataRow< T >.Subscribe ( )
inlineprotectedvirtual

Hookup any model events here (e.g. OnDatumUpdated).

Reimplemented in Lemmings.UI.LemmingUIRemappingMetricOption.

◆ Unsubscribe()

virtual void Lemmings.UI.UIDataRow< T >.Unsubscribe ( )
inlineprotectedvirtual

Tear down any event handlers here.

Reimplemented in Lemmings.UI.LemmingUIRemappingMetricOption.


The documentation for this class was generated from the following file:
  • Assets/Lemmings/Scripts/UI/LemmingUIUtilities.cs