Component:ButtonReferenceCycle

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


The ButtonReferenceCycle component holds a list of references and takes in a TargetReference of a provided type. When an IButton is pressed while this component is on it, this will cycle through the listed references and send the data through the TargetReference.

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.
TargetReference SyncRef`1<T> The reference data to send outwards.
Targets list of T The list of references to cycle through.

Usage

Useful for needing a way to cycle through references of any type.

Examples

Related Components