Open CasulScrub opened 5 years ago
InvalidOperationException: Destroying a GameObject inside a Prefab instance is not allowed. UnityEngine.Object.DestroyImmediate (UnityEngine.Object obj) (at C:/buildslave/unity/build/Runtime/Export/UnityEngineObject.bindings.cs:322) DragonBones.UnityFactoryHelper.DestroyUnityObject (UnityEngine.Object obj) (at Assets/DragonBones/Scripts/unity/UnityFactory.cs:1171) DragonBones.UnitySlot._DisposeDisplay (System.Object value, Boolean isRelease) (at Assets/DragonBones/Scripts/unity/UnitySlot.cs:138) DragonBones.Slot._OnClear () (at Assets/DragonBones/Scripts/armature/Slot.cs:187) DragonBones.UnitySlot._OnClear () (at Assets/DragonBones/Scripts/unity/UnitySlot.cs:94) DragonBones.BaseObject.ReturnToPool () (at Assets/DragonBones/Scripts/core/BaseObject.cs:221) DragonBones.Armature._OnClear () (at Assets/DragonBones/Scripts/armature/Armature.cs:131) DragonBones.BaseObject.ReturnToPool () (at Assets/DragonBones/Scripts/core/BaseObject.cs:221) DragonBones.DragonBones.AdvanceTime (Single passedTime) (at Assets/DragonBones/Scripts/core/DragonBones.cs:329) DragonBones.UnityArmatureComponent.OnDestroy () (at Assets/DragonBones/Scripts/unity/UnityArmatureComponent.cs:746) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
I don't know if you still need this fixed but i fixed it in my forked version https://github.com/SirLink/DragonBonesCSharp
I don't know if you still need this fixed but i fixed it in my forked version https://github.com/SirLink/DragonBonesCSharp
Did you fix the first one or the second one?
I don't know if you still need this fixed but i fixed it in my forked version https://github.com/SirLink/DragonBonesCSharp
Did you fix the first one or the second one?
The first one
This error also occurs randomly, switching between scenes.
InvalidOperationException: Destroying a GameObject inside a Prefab instance is not allowed. UnityEngine.Object.DestroyImmediate (UnityEngine.Object obj) (at C:/buildslave/unity/build/Runtime/Export/UnityEngineObject.bindings.cs:322) DragonBones.UnityFactoryHelper.DestroyUnityObject (UnityEngine.Object obj) (at Assets/DragonBones/Scripts/unity/UnityFactory.cs:1171) DragonBones.UnitySlot._DisposeDisplay (System.Object value, Boolean isRelease) (at Assets/DragonBones/Scripts/unity/UnitySlot.cs:138) DragonBones.Slot._OnClear () (at Assets/DragonBones/Scripts/armature/Slot.cs:187) DragonBones.UnitySlot._OnClear () (at Assets/DragonBones/Scripts/unity/UnitySlot.cs:94) DragonBones.BaseObject.ReturnToPool () (at Assets/DragonBones/Scripts/core/BaseObject.cs:221) DragonBones.Armature._OnClear () (at Assets/DragonBones/Scripts/armature/Armature.cs:131) DragonBones.BaseObject.ReturnToPool () (at Assets/DragonBones/Scripts/core/BaseObject.cs:221) DragonBones.DragonBones.AdvanceTime (Single passedTime) (at Assets/DragonBones/Scripts/core/DragonBones.cs:329) DragonBones.UnityArmatureComponent.OnDestroy () (at Assets/DragonBones/Scripts/unity/UnityArmatureComponent.cs:746) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
UnityArmatureComponent.cs void DBClear()
if (this._armature != null)
{
this._armature = null;
if (this._disposeProxy)
{
try
{
var go = gameObject;
UnityFactoryHelper.DestroyUnityObject(gameObject);
}
catch (System.Exception e)
{
}
}
}
I am having this null reference thrown very randomly, so it is hard to trace the cause. I am using Unity 2018.3. It stops my animations from playing. NullReferenceException: Object reference not set to an instance of an object DragonBones.AnimationState.AdvanceTime (Single passedTime, Single cacheFrameRate) (at Assets/DragonBones/Scripts/animation/AnimationState.cs:951