I'm currently using Unity 6 vers 6000.0.31f1 with Spine 4.2. I have to downgrade the project to 2022.3.48f1. The scripts error due to no linearVelocity detected. I fix it by re-import Spine 4.2. At this time, everything is normal. For some reason, I have to migrate again to Unity 6 vers 6000.0.32f1 and whenever I start the game, even after i re-import Spine, it keeps throw
Err 1:
InvalidCastException: Specified cast is not valid.
Spine.Unity.Editor.SkeletonGraphicInspector.DisableEditReferenceRectMode () (at Assets/Spine/Editor/spine-unity/Editor/Components/SkeletonGraphicInspector.cs:233)
Spine.Unity.Editor.SkeletonGraphicInspector.OnDisable () (at Assets/Spine/Editor/spine-unity/Editor/Components/SkeletonGraphicInspector.cs:220)
Err 2:
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.GameObjectInspector.OnDisable () (at <878b6c863a9e4c42bf8483a7b6c60e0b>:0)
Err3:
SerializedObjectNotCreatableException: Object at index 0 is null
UnityEditor.Editor.CreateSerializedObject () (at <878b6c863a9e4c42bf8483a7b6c60e0b>:0)
UnityEditor.Editor.GetSerializedObjectInternal () (at <878b6c863a9e4c42bf8483a7b6c60e0b>:0)
UnityEditor.Editor.get_serializedObject () (at <878b6c863a9e4c42bf8483a7b6c60e0b>:0)
UnityEditor.RectTransformEditor.OnEnable () (at <878b6c863a9e4c42bf8483a7b6c60e0b>:0)
Err4:
SerializedObjectNotCreatableException: Object at index 0 is null
UnityEditor.Editor.CreateSerializedObject () (at <878b6c863a9e4c42bf8483a7b6c60e0b>:0)
UnityEditor.Editor.GetSerializedObjectInternal () (at <878b6c863a9e4c42bf8483a7b6c60e0b>:0)
UnityEditor.Editor.get_serializedObject () (at <878b6c863a9e4c42bf8483a7b6c60e0b>:0)
Spine.Unity.Editor.SkeletonGraphicInspector.OnEnable () (at Assets/Spine/Editor/spine-unity/Editor/Components/SkeletonGraphicInspector.cs:153)
Err5:
MissingReferenceException: The variable m_Targets of GameObjectInspector doesn't exist anymore.
You probably need to reassign the m_Targets variable of the 'GameObjectInspector' script in the inspector. Parameter name: componentOrGameObject
UnityEngine.Object+MarshalledUnityObject.TryThrowEditorNullExceptionObject (UnityEngine.Object unityObj, System.String parameterName) (at <44f3679c53d1477a9c6e72f269e3a3a9>:0)
UnityEngine.Bindings.ThrowHelper.ThrowArgumentNullException (System.Object obj, System.String parameterName) (at <44f3679c53d1477a9c6e72f269e3a3a9>:0)
UnityEditor.PrefabUtility.IsPartOfVariantPrefab (UnityEngine.Object componentOrGameObject) (at <878b6c863a9e4c42bf8483a7b6c60e0b>:0)
UnityEditor.GameObjectInspector.OnEnable () (at <878b6c863a9e4c42bf8483a7b6c60e0b>:0)
The spine version which I used to create is 4.2.37. Please check this out.