Search Unity

DragonBones Free 2D Animation Creative Tool. Support Avatar System

Discussion in 'Formats & External Tools' started by DragonBonesAuthor, Oct 20, 2016.

  1. DragonBonesAuthor

    DragonBonesAuthor

    Joined:
    Oct 20, 2016
    Posts:
    3
    Hello, I'm DragonBones Author.
    DragonBones is a free 2D animation creative tool. It support skeletal animation, curve editor, mesh editor, skinning animation, IK, etc.


    It also support avatar system.
    There is a video show some demos using in Unity including avatar feature.


    This is the DragonBones c# open source library used in video.
    https://github.com/DragonBones/DragonBonesCSharp

    Learn more to access DragonBones website:
    http://dragonbones.github.io
     
    enriqueflores and rakeshmalik91 like this.
  2. Minsc

    Minsc

    Joined:
    Dec 30, 2013
    Posts:
    39
    Hello DragonBonesAuthor,

    I exported an animation of a skinned mesh from dragonbones to unity, when I link the file (e.g Ubbie) to the dragonbones data and click create nothing display and I get this error:
    NullReferenceException: Object reference not set to an instance of an object
    DragonBones.UnitySlot._updateFrame () (at Assets/Scripts/DragonBones/unity/UnitySlot.cs:216)
    DragonBones.Slot._updateDisplay () (at Assets/Scripts/DragonBones/armature/Slot.cs:443)
    DragonBones.Slot._update (Int32 cacheFrameIndex) (at Assets/Scripts/DragonBones/armature/Slot.cs:617)
    DragonBones.Armature.AdvanceTime (Single passedTime) (at Assets/Scripts/DragonBones/armature/Armature.cs:432)
    DragonBones.BaseFactory.BuildArmature (System.String armatureName, System.String dragonBonesName, System.String skinName) (at Assets/Scripts/DragonBones/factory/BaseFactory.cs:555)
    DragonBones.UnityFactory.BuildArmatureComponent (System.String armatureName, System.String dragonBonesName, System.String skinName, UnityEngine.GameObject gameObject) (at Assets/Scripts/DragonBones/unity/UnityFactory.cs:389)
    DragonBones.UnityArmatureEditor._changeArmature (System.String armatureName, System.String dragonBonesName) (at Assets/Scripts/DragonBones/unity/Editor/UnityEditor.cs:333)
    DragonBones.UnityArmatureEditor.OnInspectorGUI () (at Assets/Scripts/DragonBones/unity/Editor/UnityEditor.cs:136)
    UnityEditor.InspectorWindow.DrawEditor (UnityEditor.Editor editor, Int32 editorIndex, Boolean rebuildOptimizedGUIBlock, System.Boolean& showImportedObjectBarNext, UnityEngine.Rect& importedObjectBarRect) (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorWindow.cs:1235)
    UnityEditor.DockArea:OnGUI()
     
  3. James_0124

    James_0124

    Joined:
    Feb 21, 2015
    Posts:
    5
    I've got the same error too. It apparently messes up the animation in scene view when not playing. Is there any quick fix for this ?
     
  4. James_0124

    James_0124

    Joined:
    Feb 21, 2015
    Posts:
    5
    Never mind, I got it working by overwriting all the runtime scripts with those currently uploaded on the GitHub repo.
     
  5. franciscochong

    franciscochong

    Joined:
    Jul 9, 2015
    Posts:
    30
  6. franciscochong

    franciscochong

    Joined:
    Jul 9, 2015
    Posts:
    30
  7. andrewACS

    andrewACS

    Joined:
    Jun 23, 2017
    Posts:
    1
    I got Error like this:

    NullReferenceException: Object reference not set to an instance of an object
    DragonBones.UnityEditor.ChangeArmatureData (DragonBones.UnityArmatureComponent _armatureComponent, System.String armatureName, System.String dragonBonesName) (at Assets/Scripts/DragonBones/unity/Editor/UnityEditor.cs:197)
    DragonBones.UnityEditor.ChangeDragonBonesData (DragonBones.UnityArmatureComponent _armatureComponent, UnityEngine.TextAsset dragonBoneJSON) (at Assets/Scripts/DragonBones/unity/Editor/UnityEditor.cs:147)
    DragonBones.UnityArmatureEditor.OnInspectorGUI () (at Assets/Scripts/DragonBones/unity/Editor/UnityArmatureEditor.cs:121)
    UnityEditor.InspectorWindow.DrawEditor (UnityEditor.Editor[] editors, Int32 editorIndex, Boolean rebuildOptimizedGUIBlock, System.Boolean& showImportedObjectBarNext, UnityEngine.Rect& importedObjectBarRect) (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorWindow.cs:1240)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)
     
  8. ThirtysixLab

    ThirtysixLab

    Joined:
    Dec 6, 2013
    Posts:
    4
  9. blacklife

    blacklife

    Joined:
    Jan 23, 2015
    Posts:
    1
    For those who having error:
    NullReferenceException: Object reference not set to an instance of an object

    - Back to DragonBones and rename your "Armature" in Scene to whatever you like to use in Unity. "Armature" is the default name when creating DragonBone project.
    dragonbones_armature.png
    - Export again.
    - Put exported files to Unity and try to call with the new name given above.