Spriter2Unity
Spriter2Unity copied to clipboard
Compatibility issue with Unity 5
I can't seem to import the package into Unity 5.0.2 without having some form of compilation error, thus, I cannot use the script in the new version of Unity. Any fix for this?
Can you be more specific? What is the error you get?
The file does not become an animation, it just sits there as scml file and you can't attach it to a gameobject, drag it into a scene or manipulate it in anyway in unity.
From: Dharengo <[email protected]>
To: bonus2113/Spriter2Unity [email protected] Cc: azureskyline [email protected] Sent: Monday, June 8, 2015 12:53 AM Subject: Re: [Spriter2Unity] Compatibility issue with Unity 5 (#6)
Can you be more specific? What is the error you get?— Reply to this email directly or view it on GitHub.
The file isn't supposed to become anything. You're supposed to use the prefab that is created,
But it doesn't even create a prefab. Are there any instructions updated for Unity 5 users?
Sent from Yahoo Mail on Android
From:"Dharengo" [email protected] Date:Sun, 14 Jun, 2015 at 2:55 pm Subject:Re: [Spriter2Unity] Compatibility issue with Unity 5 (#6)
The file isn't supposed to become anything. You're supposed to use the prefab that is created,
— Reply to this email directly or view it on GitHub.
You mentioned a compilation error. What error is that?
This is the compile error I get during import
2>------ Build started: Project: ******.CSharp.Editor, Configuration: Debug Any CPU ------ ThirdParty\Spriter2Unity\Editor\Unity\AnimationBuilder.cs(64,46,64,56): error CS1061: 'Entity' does not contain a definition for 'Animations' and no extension method 'Animations' accepting a first argument of type 'Entity' could be found (are you missing a using directive or an assembly reference?) ThirdParty\Spriter2Unity\Editor\Unity\AnimationBuilder.cs(104,13,104,92): error CS0619: 'AnimationUtility.SetAnimationType(AnimationClip, ModelImporterAnimationType)' is obsolete: 'SetAnimationType is no longer supported' ThirdParty\Spriter2Unity\Editor\Unity\ScmlPostProcessor.cs(112,65,112,71): error CS1503: Argument 2: cannot convert from 'Assets.ThirdParty.Spriter2Unity.Editor.Spriter.Entity' to 'Entity' ThirdParty\Spriter2Unity\Editor\Unity\ScmlPostProcessor.cs(116,119,116,137): error CS0619: 'AnimatorController' is obsolete: 'AnimatorController is obsolete. Use UnityEditor.Animations.AnimatorController instead (UnityUpgradable) -> UnityEditor.Animations.AnimatorController' ThirdParty\Spriter2Unity\Editor\Unity\ScmlPostProcessor.cs(116,38,116,56): error CS0619: 'AnimatorController' is obsolete: 'AnimatorController is obsolete. Use UnityEditor.Animations.AnimatorController instead (UnityUpgradable) -> UnityEditor.Animations.AnimatorController' ThirdParty\Spriter2Unity\Editor\Unity\ScmlPostProcessor.cs(121,34,121,52): error CS0619: 'AnimatorController' is obsolete: 'AnimatorController is obsolete. Use UnityEditor.Animations.AnimatorController instead (UnityUpgradable) -> UnityEditor.Animations.AnimatorController' ThirdParty\Spriter2Unity\Editor\Unity\ScmlPostProcessor.cs(121,53,121,83): error CS0117: 'AnimatorController' does not contain a definition for 'CreateAnimatorControllerAtPath' ThirdParty\Spriter2Unity\Editor\Unity\ScmlPostProcessor.cs(126,29,126,47): error CS0619: 'AnimatorController' is obsolete: 'AnimatorController is obsolete. Use UnityEditor.Animations.AnimatorController instead (UnityUpgradable) -> UnityEditor.Animations.AnimatorController' ThirdParty\Spriter2Unity\Editor\Unity\ScmlPostProcessor.cs(126,48,126,76): error CS0117: 'AnimatorController' does not contain a definition for 'AddAnimationClipToController' ThirdParty\Spriter2Unity\Editor\Unity\ScmlPostProcessor.cs(130,17,130,35): error CS0619: 'AnimatorController' is obsolete: 'AnimatorController is obsolete. Use UnityEditor.Animations.AnimatorController instead (UnityUpgradable) -> UnityEditor.Animations.AnimatorController' ThirdParty\Spriter2Unity\Editor\Unity\ScmlPostProcessor.cs(130,36,130,57): error CS0117: 'AnimatorController' does not contain a definition for 'SetAnimatorController'
Apologies, I did not realize you had replied back. That compile error looks about right. I remember that I had to do a work around for that project which satisfied the requirement for it in the end. Your dedication to resolve issues are much appreciated.