Skip to content

LogicEditor | Animation Node Wrap Mode not setup correctly

Summary

The AnimationNode can be used to play animations of gltf files (or in theory anything using animation clips). The node setup should allow to pick if this animation should loop or only be played once. This currently does not work, it's always using the wrapmode setup in the file.

Steps to reproduce

  1. Import an animated GLTF into your scene and convert it into a Figment
  2. Build a nodegraph like shown below
  3. Test the scene with looping enabled or disabled

What is the current bug behavior?

Changing the wrapmode in the node does not change the looping behaviour of the animation

What is the expected correct behavior?

The wrapmode should be working


Version

Which version of Figments.nrw are you using (bottom left of the main menu)? If you work on a customized version of Figments.nrw, please report any relevant changes.

Build Target

All

Mode

Both


Relevant logs and/or screenshots

grafik

Possible fixes

We need to set the WrapMode of the animation clip, not the source. E.g.:

_source.clip.wrapMode = WrapMode.ClampForever;
_source.wrapMode = WrapMode.ClampForever;