DragonBonesCSharp
DragonBonesCSharp copied to clipboard
Null Reference of UGUI Armature build
Building ArmatureComponent with isUGUI param is true resulting vertextBuffers of UnitySlot's MeshBuffer null Unity 2018.2.18f1
Same error at MeshBuffer null, but my problem is not caused by isUGUI parameter Reproduce(runtime version 5.6.300, unity version 2019.1.4f):
- export an official example db project to 5.5 json format
- load json data in unity
- call unity factory BuildArmatureComponent(armatureName)
Is this bug has any progress?
I think its about naming, for the armatureName you pass in, try use the skeleton name you specified in the DragonBone Editor, rather than any file names appear in unity
Hello, I'm also facing this issue. I will investigate as soon as I have some time in my hands. During my test, I'm not sure but I have noticed it seems that if you have in the Unity scene a UGUI Armature object for same the armature you are building with UnityFactory.factory.BuildArmatureComponent() the vertextBuffers is filled correctly and the issue disappear.
@Ultraspider Thanks, man. You gave me the idea.
After testing it, I found that every time I import a new asset (two json files and one png file), I need to Create an Armature Object in Hiearchy with the new asset, and then click Create in the Inspector on the right. This will generate a _tex_Mat file, which will call BuildArmatureComponent in the script without an exception. I don't understand why this is the only way to generate the missing file. The BuildArmatureComponent method itself does not create the file it needs
In UGUI mode, create an ArmatureObject(UGUI).
--by Google Translate