DragonBones / DragonBonesCSharp

DragonBones C# Runtime
MIT License
537 stars 198 forks source link

在项目中播放某个动画,不知道这是为什么就会报错 #67

Open ZhoujianhuaUnity opened 5 years ago

ZhoujianhuaUnity commented 5 years ago

NullReferenceException: Object reference not set to an instance of an object DragonBones.TimelineState._SetCurrentTime (Single passedTime) (at Assets/DragonBones/Scripts/animation/BaseTimelineState.cs:116) DragonBones.TimelineState.Update (Single passedTime) (at Assets/DragonBones/Scripts/animation/BaseTimelineState.cs:228) DragonBones.AnimationState.AdvanceTime (Single passedTime, Single cacheFrameRate) (at Assets/DragonBones/Scripts/animation/AnimationState.cs:932) DragonBones.Animation.AdvanceTime (Single passedTime) (at Assets/DragonBones/Scripts/animation/Animation.cs:242) DragonBones.Armature.AdvanceTime (Single passedTime) (at Assets/DragonBones/Scripts/armature/Armature.cs:330) DragonBones.WorldClock.AdvanceTime (Single passedTime) (at Assets/DragonBones/Scripts/animation/WorldClock.cs:155) DragonBones.DragonBones.AdvanceTime (Single passedTime) (at Assets/DragonBones/Scripts/core/DragonBones.cs:357) DragonBones.ClockHandler.Update () (at Assets/DragonBones/Scripts/unity/UnityFactory.cs:36)

JuanGdelaCruz commented 5 years ago

I get the same error, in my case it has something to do with UnityArmatureComponent.animation.Reset()