DragonBones / DragonBonesCSharp

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

Lot of issues when importing to Unity. #76

Open Wanmiet opened 3 years ago

Wanmiet commented 3 years ago

I imported Dragon Bones to my Unity project for the first time and get all of these errors.

Assets\Scripts\UnityDragonBones\Scripts\unity\UnityArmatureComponent.cs(147,45): warning CS0168: The variable 'e' is declared but never used
Assets\Scripts\UnityDragonBones\Scripts\unity\UnityArmatureComponent.cs(663,20): warning CS0618: 'PrefabUtility.GetPrefabParent(Object)' is obsolete: 'Use GetCorrespondingObjectFromSource.'
Assets\Scripts\UnityDragonBones\Scripts\unity\UnityArmatureComponent.cs(664,20): warning CS0618: 'PrefabUtility.GetPrefabObject(Object)' is obsolete: 'Use GetPrefabInstanceHandle for Prefab instances. Handles for Prefab Assets has been discontinued.'
Assets\Scripts\UnityDragonBones\Editor\UnityArmatureEditor.cs(518,20): warning CS0618: 'PrefabUtility.GetPrefabParent(Object)' is obsolete: 'Use GetCorrespondingObjectFromSource.'
Assets\Scripts\UnityDragonBones\Editor\UnityArmatureEditor.cs(519,20): warning CS0618: 'PrefabUtility.GetPrefabObject(Object)' is obsolete: 'Use GetPrefabInstanceHandle for Prefab instances. Handles for Prefab Assets has been discontinued.'
Assets\Scripts\UnityDragonBones\Editor\AssetProcess.cs(36,39): warning CS0649: Field 'AssetProcess.SubTextureClass.height' is never assigned to, and will always have its default value 0
Assets\Scripts\UnityDragonBones\Editor\AssetProcess.cs(36,55): warning CS0649: Field 'AssetProcess.SubTextureClass.frameY' is never assigned to, and will always have its default value 0
Assets\Scripts\UnityDragonBones\Editor\AssetProcess.cs(36,32): warning CS0649: Field 'AssetProcess.SubTextureClass.width' is never assigned to, and will always have its default value 0
Assets\Scripts\UnityDragonBones\Editor\AssetProcess.cs(36,75): warning CS0649: Field 'AssetProcess.SubTextureClass.frameHeight' is never assigned to, and will always have its default value 0
Assets\Scripts\UnityDragonBones\Editor\AssetProcess.cs(35,27): warning CS0649: Field 'AssetProcess.SubTextureClass.name' is never assigned to, and will always have its default value null
Assets\Scripts\UnityDragonBones\Editor\AssetProcess.cs(36,26): warning CS0649: Field 'AssetProcess.SubTextureClass.x' is never assigned to, and will always have its default value 0
Assets\Scripts\UnityDragonBones\Editor\AssetProcess.cs(36,29): warning CS0649: Field 'AssetProcess.SubTextureClass.y' is never assigned to, and will always have its default value 0
Assets\Scripts\UnityDragonBones\Editor\AssetProcess.cs(36,47): warning CS0649: Field 'AssetProcess.SubTextureClass.frameX' is never assigned to, and will always have its default value 0
Assets\Scripts\UnityDragonBones\Editor\AssetProcess.cs(36,63): warning CS0649: Field 'AssetProcess.SubTextureClass.frameWidth' is never assigned to, and will always have its default value 0