Search Unity

  1. Unity 2020.1 has been released.
    Dismiss Notice
  2. We are looking for feedback on the experimental Unity Safe Mode which is aiming to help you resolve compilation errors faster during project startup.
    Dismiss Notice
  3. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    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:
    10
    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