This is no longer a stub. Added a description, added usage description, added field descriptions.
Line 2:
Line 2:
<translate>
<translate>
<!--T:1-->
<!--T:1-->
{{stub}}
{{Infobox Component
{{Infobox Component
|Image=ButtonPlaybackActionComponent.png
|Image=ButtonPlaybackActionComponent.png
|Name=Button Playback Action
|Name=Button Playback Action
}}
}}
The '''ButtonPlaybackAction''' component takes in an [[Type:IPlayable|IPlayable]]. When an [[Type:IButton|IButton]] is pressed while this component is in the same [[Slot|slot]], it will set the action on this playable media depending on what is set up in this component.
<!--T:2-->
<!--T:2-->
== Fields ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|Playback|IPlayable|
|Playback|IPlayable| The playable media itself.
|OnHover|PlaybackAction| The action to take when the button is hovered over.
|OnHover|PlaybackAction| The action to take when the button is hovered over.
|OnLeave|PlaybackAction| The action to take when the button is left.
|OnLeave|PlaybackAction| The action to take when the button is left.
Line 20:
Line 21:
<!--T:3-->
<!--T:3-->
== Usage ==
== Usage ==
Basically your media buttons (<code>Play</code>, <code>Pause</code>, <code>Resume</code>, and <code>Stop</code>) that can be setup anywhere.
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.