Giter Club home page Giter Club logo

unity-spine-importer's People

Contributors

abraksil avatar nicloay avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

unity-spine-importer's Issues

error with build prefab

unity4.5
use spineboy

Key count: 1 on curve 'hip'
UnityEditor.AnimationUtility:SetEditorCurve(AnimationClip, EditorCurveBinding, AnimationCurve)
UnitySpineImporter.SpineUtil:addBoneAnimationToClip(AnimationClip, Dictionary2, SpineData, Dictionary2, 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, Dictionary2, 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, Dictionary2, 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()

Disable image from slot when goes animation not works in unity

Hi there!
I found one problem.
On any time key i disable image from slot. Thats nice works in Spine, but after import to unity, image always displayed.
Sample project is in attached file. Download, rename mask jpg to zip to unarchive it.
Big thanks for your reply.
test

export with scaling

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

Wont work for Unity 5

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

i got this error

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)

option "do not rewrite assets"

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

draw order in animation issue

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.

Arrange structure

Bring the same structure as in the spine (starting from top level object (skeleton by default) in to the unity.

Setting skins for every slot independently.

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.