An error occurred when I use Timeline and NodeCanvas together

NodeCanvas Forums Support An error occurred when I use Timeline and NodeCanvas together

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #16412
    fan
    Participant

    If I define a “TimelineAsset” field in an action node and add the node to a graph,then an error occurred when I try to select the Timeline clip in Timeline editor window.

    How can I fix the error?

    The Unity version is 2022.2.0b8.

    Attachments:
    You must be logged in to view attached files.
    #16438
    Gavalakis
    Keymaster

    Hello,

    There has been a hotfix regarding attributes in the latest version live on the Asset Store (it is the same version number however). Can you please try updating and let me know? Thank you!

    Join us on Discord: https://discord.gg/97q2Rjh

    #16453
    fan
    Participant

    Thanks.

    I have updated to the newest version,but it doesn’t work.

    It seems that the error is caused by deserialization.

    #16479
    Gavalakis
    Keymaster

    Hello again and sorry for the late reply.

    I just tried to replicate this with the latest version of NodeCanvas from asset store and Unity 2022.1.19f1, but there were no errors poping up. Just to clarify, here is what I tried:

    1) I made a simple custom Action Task with a public Timeline Asset type field and added that action task in a graph.
    2) I also assigned a Timeline Asset I had created there.
    3) I opened up Unity’s Timeline Editor and selected various clips that I created within that Timeline.

    Can you please let me know any way for reproducing the errors you see poping up?

    Thank you.

    Join us on Discord: https://discord.gg/97q2Rjh

    #16492
    fan
    Participant

    Hello,

    I replicated it with Unity 2022.1.19f1.Your steps are roughly right,but you missed something.

    1.You need to bound the graph to a graph owner of game scene.

    2.You need to trigger code recompilation,such as running the game scene.

    If nothing else, you can reproduce this error.

     

    #16514
    Gavalakis
    Keymaster

    Hello again,

    I was able to replicate the error in the end and is indeed related to the previous attribute error. To fix this now, please open up ReflectionTools.cs and change the method named “RTGetAttribute” in line #893 to simply be like this:

    Let me know if that works for you. Thanks.

    Join us on Discord: https://discord.gg/97q2Rjh

    #16517
    fan
    Participant

    It works,thanks.

    #16529
    Gavalakis
    Keymaster

    You are very welcome 🙂

    Join us on Discord: https://discord.gg/97q2Rjh

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.