Component:ButtonLoopSet

From Resonite Wiki
Revision as of 01:39, 12 September 2024 by AmasterAmaster (talk | contribs) (This is no longer a stub. Added a description, added field descriptions, added usage description.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Component image 
Button Loop Set component as seen in the Scene Inspector


The ButtonLoopSet component takes in an IPlayable. When an IButton is pressed while this component is in the same slot, it will set the loop on this playable media depending on what is set up in this component.

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.
Playback IPlayable The referenced playable media.
OnPress LoopSetOptions Sets the type of loop for this media when pressed.
OnRelease LoopSetOptions Sets the type of loop for this media when released.

Usage

Basically a loop button that can be setup anywhere.

Examples

See Also