Scenaria - now supports unity animations

Really excited to release Scenaria v1.51

The main change is the ability to play Unity (and possibly other) animation files .anim within a scene. 

To load an animation into your scene - copy the .anim file (which is a text file with the animation data serialized in YAML format) onto your web server. Then add a script command to load and play the animation on demand.

e.g. add a command PlayPauseAnimation("A100","/pipe/myanimation.anim","loop","*");

where -
  • PlayPauseAnimation is the script command
  • "A100" is the Asset ID of the hologram we want to animate 
  • "/pipe/myanimation.anim" is the relative path on the web server to the .anim file
  • "loop" - controls the number of times the animation is played - Unity allows 
    • "loop" to play the animation indefinitely - 
    • "once" to play then stop the animation (the default) 
    • "pingpong"
  • "*" - is the Hololens that the animation should be played on, currently we support 
    • "*" which means play on all Hololens in the room
    • "local" - play only this one.

1) We are using the legacy animation tools within Unity as there doesn't currently appear to be any support for programmatically creating animations in the latest Unity versions.
2) Currently, we support the following animation curves-
  • m_PositionCurves - The location of the asset
  • m_ScaleCurves - For scaling assets
  • m_EulerCurves - Rotation of the asset
  • m_FloatCurves - the only attribute is m_isActive for visibility

If you have any questions, issues or suggestions please let us know

Scenaria Team


Popular posts from this blog