You are unable to play, reverse and pause the device through verse.
using { /Fortnite.com/Devices }
using { /Verse.org/Native }
using { /EpicGames.com/Temporary/Diagnostics }
using { /Verse.org/Simulation}
log_Animated_Mesh_API:=class(log_channel){}
Animated_Mesh_API := class<concrete>(creative_device):
Logger:log = log{Channel:=log_Animated_Mesh_API}
# Button Devices =============================================================================================
@editable
Button_PlayAnimation: button_device = button_device{}
@editable
Button_PauseAnimation: button_device = button_device{}
@editable
Button_PlayReverseAnimation: button_device = button_device{}
# Testing Device =============================================================================================
@editable
Animanted_Mesh: animated_mesh_device = animated_mesh_device{}
OnBegin<override>()<suspends>:void=
# Replace this with your code
Logger.Print("Verse device started!")
# Links functions to Devices =================================================================================
Button_PlayAnimation.InteractedWithEvent.Subscribe(Button_PlayAnimation_Inteact)
Button_PauseAnimation.InteractedWithEvent.Subscribe(Button_PauseAnimation_Inteact)
Button_PlayReverseAnimation.InteractedWithEvent.Subscribe(Button_PlayReverseAnimation_Inteact)
Button_PlayAnimation_Inteact(Player:player):void=
Animanted_Mesh.PlayAnimation()
Logger.Print("Play Animation")
Button_PauseAnimation_Inteact(Player:player):void=
Animanted_Mesh.PauseAnimation()
Logger.Print("Pause Animation")
Button_PlayReverseAnimation_Inteact(Player:player):void=
Animanted_Mesh.PlayReverseAnimation()
Logger.Print("Play Reverse Animation")