• RuntimesUnity
  • SpineTimeline 4.1 SpineAnimationStateMixerBehaviour errors

Hi! I have upgrade to spine-unity-4.2-2024-06-20 and the SpineTimeline 4.1 and now I am getting this two errors in the console that I can't solve and don't let me continue working:

  • error CS1061: 'TrackEntry' does not contain a definition for 'DrawOrderThreshold' and no accessible extension method 'DrawOrderThreshold' accepting a first argument of type 'TrackEntry' could be found (are you missing a using directive or an assembly reference?)

  • error CS1061: 'TrackEntry' does not contain a definition for 'AttachmentThreshold' and no accessible extension method 'AttachmentThreshold' accepting a first argument of type 'TrackEntry' could be found (are you missing a using directive or an assembly reference?)

I tried to search for something similar in the web and forums but I'm not a programmer and I am confuse about them.

Hope someone can help me.

  • Misaki がこの投稿に返信しました。
    Related Discussions
    ...

    The errors you are encountering indicate that the TrackEntry class in the version of the Spine runtime you are using does not have the properties DrawOrderThreshold and AttachmentThreshold. This suggests that there might be a mismatch between the Spine runtime version and the Spine Timeline package you are using.

    Here are some steps you can take to resolve the issue:

    1. Ensure Compatibility: Make sure that the versions of the Spine runtime and the Spine Timeline package you are using are compatible. According to the context, the latest versions can be downloaded from Spine Unity Download.

    2. Update Packages: If you haven't already, download and install the latest versions of both the Spine runtime and the Spine Timeline package. This can often resolve issues caused by version mismatches.

    3. Check for Updates: Ensure that you have the latest updates for the Spine Timeline package. Sometimes, issues are fixed in newer commits. You can check the issue tracker for updates, such as this issue which was fixed in a recent commit.

    4. Re-import Project: Sometimes, Unity projects can get into a corrupted state. Try re-importing the project or deleting the Library directory and then reopening the project. This can resolve issues related to unresolved package dependencies.

    5. Verify Installation: Make sure you have deleted the old Spine and Spine Examples runtime directories before installing the new runtime, as mentioned in the context. This ensures that there are no conflicts between old and new files.

    If these steps do not resolve the issue, you might need to manually adjust your code to fit the new API changes. For example, if DrawOrderThreshold and AttachmentThreshold are no longer part of TrackEntry, you will need to find the new way to achieve the same functionality in the updated API.

    If you need further assistance, please provide more details about your setup, such as the specific versions of the Spine runtime and Spine Timeline package you are using, and any custom code that might be interacting with these properties.

    albertocostagomez Please upgrade to spine.timeline 4.2. It is not possible to use spine.timeline 4.1 while using 4.2 for runtime.


    Just to be sure, here is an additional explanation of the error messages:
    From spine-unity 4.2, TrackEntry.AttachmentThreshold has been replaced with TrackEntry.MixAttachmentThreshold, and TrackEntry.DrawOrderThreshold has been replaced with TrackEntry.MixDrawOrderThreshold.

    That solve the issue! My bad, I don't know why I thought the 4.1 Timeline version was the newest one.
    Thank you so much for the quick response!

    • Misaki が「いいね」しました。