UIStateItemMirror
CJFinc.​UItools.​UIStateItemExtention
public
CJFinc.​UItools.​UIStateItemMirror

UIStateItemMirror allows to synchronize main UIStateItem item state to another UIStateItem items

UIStateItemMirror-editor

Once mirrorItems array is defined

UIStateItemMirror-component-assign

any state change of the main item will be translated to all mirrorItems items

UIStateItemMirror-state-synchronization
Details

This component require the UIStateItem to be attached to the same game object

Variables
mirrorItems
public UIStateItem [] mirrorItems

Array of UIStateItem items to sync current item state to

Functions
ApplyCurrentState ()
public override void ApplyCurrentState()

Synchronize current UIStateItem state to all mirrorItems

Called automatically on UIStateItem state change.