nicloay / unity-spine-importer Goto Github PK
View Code? Open in Web Editor NEWBring data from spine (EsotericSoftware) in to the unity3d
License: BSD 3-Clause "New" or "Revised" License
Bring data from spine (EsotericSoftware) in to the unity3d
License: BSD 3-Clause "New" or "Revised" License
unity4.5
use spineboy
Key count: 1 on curve 'hip'
UnityEditor.AnimationUtility:SetEditorCurve(AnimationClip, EditorCurveBinding, AnimationCurve)
UnitySpineImporter.SpineUtil:addBoneAnimationToClip(AnimationClip, Dictionary2, SpineData, Dictionary
2, Single) (at Assets/UnitySpineImporter/Scripts/Editor/Util/SpineUtil.cs:760)
UnitySpineImporter.SpineUtil:addAnimation(GameObject, String, SpineData, Dictionary`2, AttachmentGOByNameBySlot, Int32, ModelImporterAnimationType, Boolean) (at Assets/UnitySpineImporter/Scripts/Editor/Util/SpineUtil.cs:412)
UnitySpineImporter.SpineImporterWizard:OnWizardCreate() (at Assets/UnitySpineImporter/Scripts/Editor/SpineImporterWizard.cs:77)
UnityEditor.HostView:OnGUI()
Index (1) is out of range [0, 1)
UnityEditor.AnimationUtility:SetEditorCurve(AnimationClip, EditorCurveBinding, AnimationCurve)
UnitySpineImporter.SpineUtil:addBoneAnimationToClip(AnimationClip, Dictionary2, SpineData, Dictionary
2, Single) (at Assets/UnitySpineImporter/Scripts/Editor/Util/SpineUtil.cs:760)
UnitySpineImporter.SpineUtil:addAnimation(GameObject, String, SpineData, Dictionary`2, AttachmentGOByNameBySlot, Int32, ModelImporterAnimationType, Boolean) (at Assets/UnitySpineImporter/Scripts/Editor/Util/SpineUtil.cs:412)
UnitySpineImporter.SpineImporterWizard:OnWizardCreate() (at Assets/UnitySpineImporter/Scripts/Editor/SpineImporterWizard.cs:77)
UnityEditor.HostView:OnGUI()
Index (-1) is out of range [0, 1)
UnityEditor.AnimationUtility:SetEditorCurve(AnimationClip, EditorCurveBinding, AnimationCurve)
UnitySpineImporter.SpineUtil:addBoneAnimationToClip(AnimationClip, Dictionary2, SpineData, Dictionary
2, Single) (at Assets/UnitySpineImporter/Scripts/Editor/Util/SpineUtil.cs:760)
UnitySpineImporter.SpineUtil:addAnimation(GameObject, String, SpineData, Dictionary`2, AttachmentGOByNameBySlot, Int32, ModelImporterAnimationType, Boolean) (at Assets/UnitySpineImporter/Scripts/Editor/Util/SpineUtil.cs:412)
UnitySpineImporter.SpineImporterWizard:OnWizardCreate() (at Assets/UnitySpineImporter/Scripts/Editor/SpineImporterWizard.cs:77)
UnityEditor.HostView:OnGUI()
Importer creates animation, but show many errors in the log.
more details here http://forum.unity3d.com/threads/247372-AnimationUtility-SetEditorCurve-can-t-add-Curve-with-one-keyfram
Hi ,
I found a problem that i need a slot blending is Additive, It`s work in spine preview. but when i import to unity use your importer. there is no add effect.
please check it , tnk
currently activeSkinId does not serialized
hey Nicolay
Thank you for this great importer.
I have a question though: If I export the texture atlas from spine with different scales, than the importer doesn't scale the skeleton with it. Is there any solution for this? Textures are too big in Spine, and I want to import 1:1 sprites in Unity.
What do you think?
Thank you
Im not sure if this is just happening to me but I have updated to unity 5 and have only recently found this plugin. Can anyone confirm that it works with Unity 5? I am getting a few errors
Assets/UnitySpineImporter/Scripts/Editor/Util/SpineUtil.cs(52,25): error CS0246: The type or namespace name `AvatarMask' could not be found. Are you missing a using directive or an assembly reference?
Assets/UnitySpineImporter/Scripts/Editor/Util/SpineUtil.cs(417,50): error CS0619: UnityEditor.AnimationUtility.SetAnimationType(UnityEngine.AnimationClip, UnityEditor.ModelImporterAnimationType)' is obsolete:
SetAnimationType is no longer supported'
Assets/UnitySpineImporter/Scripts/Editor/Util/SpineUtil.cs(1068,25): error CS0619: UnityEditorInternal.AnimatorController' is obsolete:
AnimatorController is obsolete. Use UnityEditor.Animations.AnimatorController instead (UnityUpgradable).'
Thanks
NullReferenceException: Object reference not set to an instance of an object
UnitySpineImporter.SpineUtil.updateImporters (UnitySpineImporter.SpineMultiatlas multiatlas, System.String directory, Int32 pixelsPerUnit, .SpritesByName& spriteByName) (at Assets/UnitySpineImporter/Scripts/Editor/Util/SpineUtil.cs:129)
UnitySpineImporter.SpineImporterWizard.OnWizardCreate () (at Assets/UnitySpineImporter/Scripts/Editor/SpineImporterWizard.cs:61)
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:232)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115)
UnityEditor.ScriptableWizard.OnGUI () (at C:/buildslave/unity/build/artifacts/generated/common/editor/ScriptableWizardBindings.gen.cs:83)
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:232)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115)
UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:262)
UnityEditor.HostView.Invoke (System.String methodName) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:255)
UnityEditor.HostView.OnGUI () (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:84)
in case if you added some scripts and component, just update skeleton.
Also if you created animator and customized animation option it's not good to lost this settings when you re-import your model
i found a bug that the drawOrder in animation didn't be correctly deserialized, because the property "draworder" in SpineAnimation didn't match the tag "drawOrder" in jsonData.
it made SpinAnimation.draworder always be null.
change the SpinAnimation.draworder to SpinAnimation.drawOrder will fix the problem.
wrong slot on/off sequence in animations
http://pastebin.com/J6wqU8ax this code show how to find current texture size
Bring the same structure as in the spine (starting from top level object (skeleton by default) in to the unity.
Spine treats the skin as a whole but It would be nice if we were actually able to mix them up (character's helmet form one skin and armor form the other one).
I’m going to implement this feature to skinController In my game. If you don’t mind I also would like to add it to your project.
Let me know if it is ok with you.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.