Question by
JulianoFranz · Apr 11, 2017 at 01:37 AM ·
animationscripting problem
Legacy Animation working on the Editor but not on HoloLens
Hey folks! I have this animation that I create on script that works on the editor but not on the Hololens.
I create the clip as:
var clip = new AnimationClip();
clip.SetCurve("", typeof(ParticleFlow), "sideTranslation", AnimationCurve.EaseInOut(0, sideTranslation, 0.5f, sideTranslation * expansionFactor));
clip.legacy = true;
Then I play with:
animationController.Play("Expand");
when the user gaze at a element. In the editor it works like a charm but when I deploy to the hololens I get:
Can't use AnimationClip::SetCurve at Runtime on non Legacy AnimationClips
(Filename: C:/buildslave/unity/build/Runtime/Animation/AnimationClip.cpp Line: 1032)
Does anyone knows what I am missing?
Cheers
Comment