Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Importing from Spriter Pro

Discussion in 'Animation' started by the_terrible, Nov 5, 2015.

  1. the_terrible

    the_terrible

    Joined:
    Nov 4, 2015
    Posts:
    40
    So I'm trying to import animations I made in Spriter Pro and getting the following error. Does anyone know what the issue could be? I'm using the package found here:

    https://github.com/Dharengo/Spriter2UnityDX


    Unable to build a prefab for 'Zombie Animations'. Reason: System.NullReferenceException: Object reference not set to an instance of an object
    at Spriter2UnityDX.Prefabs.PrefabBuilder.TryBuild (Spriter2UnityDX.Importing.Entity entity, UnityEngine.GameObject prefab, UnityEngine.GameObject instance, System.String directory, System.String prefabPath, IDictionary`2 folders) [0x0013a] in E:\Program Files (x86)\Unity\New Unity Project\Assets\Spriter2UnityDX\Editor\PrefabBuilder.cs:85
    at Spriter2UnityDX.Prefabs.PrefabBuilder.Build (Spriter2UnityDX.Importing.ScmlObject obj, System.String scmlPath) [0x0014e] in E:\Program Files (x86)\Unity\New Unity Project\Assets\Spriter2UnityDX\Editor\PrefabBuilder.cs:50
    UnityEngine.Debug:LogErrorFormat(String, Object[])
    Spriter2UnityDX.Prefabs.PrefabBuilder:Build(ScmlObject, String) (at Assets/Spriter2UnityDX/Editor/PrefabBuilder.cs:54)
    Spriter2UnityDX.PostProcessing.ScmlPostProcessor:processFiles(IList`1) (at Assets/Spriter2UnityDX/Editor/ScmlPostProcessor.cs:40)
    Spriter2UnityDX.PostProcessing.ScmlPostProcessor:OnPostprocessAllAssets(String[], String[], String[], String[]) (at Assets/Spriter2UnityDX/Editor/ScmlPostProcessor.cs:32)
    UnityEditor.AssetDatabase:SaveAssets()
    Spriter2UnityDX.PostProcessing.ScmlPostProcessor:processFiles(IList`1) (at Assets/Spriter2UnityDX/Editor/ScmlPostProcessor.cs:43)
    Spriter2UnityDX.PostProcessing.ScmlPostProcessor:OnPostprocessAllAssets(String[], String[], String[], String[]) (at Assets/Spriter2UnityDX/Editor/ScmlPostProcessor.cs:32)
    UnityEditor.AssetPostprocessingInternal:postprocessAllAssets(String[], String[], String[], String[], String[])
    UnityEditorInternal.InternalEditorUtility:projectWindowDrag(HierarchyProperty, Boolean)
    UnityEditor.DockArea:OnGUI()
     
  2. Zbigniew Wiadro

    Zbigniew Wiadro

    Joined:
    Aug 20, 2013
    Posts:
    6
    I see the only solution - DON'T USE IT.
    The Spriter2UnityDX import plugin causes so many issues that it is no worth wasting your time.