Search Unity

  1. New Unity Live Help updates. Check them out here!

    Dismiss Notice

Error on Spine: InvalidCastException: Specified cast is not valid.

Discussion in 'Editor & General Support' started by mcolombo, Aug 27, 2019.

  1. mcolombo

    mcolombo

    Joined:
    Sep 27, 2017
    Posts:
    7
    Hi,
    I've updated spine to spine-unity-3.8-2019-08-20, and is throwing all errors internally, making my spines uneditable, since i can access to the skeleton animation script.

    Im using Unity 2019.2.2f1 and also exported the spines with 3.8.

    Seems to be a problem in the editor mainly.
    I get these kind of errors:

    InvalidCastException: Specified cast is not valid.
    Spine.Unity.Editor.SpineEditorUtilities.IssueWarningsForUnrecommendedTextureSettings (System.String texturePath) (at Assets/Spine/Editor/spine-unity/Editor/Utility/SpineEditorUtilities.cs:172)

    NullReferenceException: Object reference not set to an instance of an object
    Spine.Unity.Editor.SpineInspectorUtility.PropertyFieldFitLabel (UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, System.Single extraSpace) (at Assets/Spine/Editor/spine-unity/Editor/Utility/SpineInspectorUtility.cs:66)

    Mi skeleton animation script looks like the one attached.

    Any ideas here?
    Already tried all versions of unity, spine, everything. Im going nuts.

    Thank you all
     

    Attached Files:

    saebashi likes this.
  2. saebashi

    saebashi

    Joined:
    Nov 5, 2013
    Posts:
    1
unityunity