Component:ButtonPlaybackAction

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


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

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.
Playback IPlayable The playable media itself.
OnHover PlaybackAction The action to take when the button is hovered over.
OnLeave PlaybackAction The action to take when the button is left.
OnPress PlaybackAction The action to take when the button is pressed.
OnRelease PlaybackAction The action to take when the button is released.

Usage

Basically your media buttons (Play, Pause, Resume, and Stop) that can be setup anywhere.

Examples

Related Components