Component:ButtonEnumShift

From Resonite Wiki
Revision as of 21:35, 11 September 2024 by AmasterAmaster (talk | contribs) (This is no longer a stub. Added a description. added a usage description. added field descriptions.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Component image 
Button Enum Shift`1 component as seen in the Scene Inspector


The ButtonEnumShift component takes in a target Enum and the amount to shift by (positive numbers are forward, negative numbers are backwards). When an IButton component on the same slot is pressed, this component will shift the enum.

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.
TargetValue IField`1<E> The target Enum.
ShiftDelta Int The amount to shift by.

Usage

This is used to shift enums by button press.

Examples

Related Components