• Unity
  • addEmptyAnimation Error

Related Discussions
...

Hey, I am getting an error when I try to use addEmptyAnimation. I tried to use this code

animManager.skeletonAnimation.state.addEmptyAnimation (1, 1f, 0f); but then I get this error:

Assets/Scripts/AI Behaviors/AIDetection.cs(244,77): error CS1061: Type Spine.AnimationState' does not contain a definition foraddEmptyAnimation' and no extension method addEmptyAnimation' of typeSpine.AnimationState' could be found (are you missing a using directive or an assembly reference?)

I can't seem to figure this one out. 🙁

If you are using the latest (3.5) runtime, it should be there: spine-runtimes/AnimationState.cs at master

Are you aware that identifiers are case-sensitive?
Are you also aware that MonoDevelop/Xamarin/Visual Studio gives you auto-complete popups?

I actually haven't updated the unity runtime. I will try that. Thank you!


08 Jan 2017, 03:58


That fixed it, I am able to do that now. Thanks again!