An error occurred when I use Timeline and NodeCanvas together

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

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #15554
    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.

      #15561
      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!

        #15560
        fan
        Participant

          Thanks.

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

          It seems that the error is caused by deserialization.

          #15559
          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.

            #15558
            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.

               

              #15557
              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.

                #15556
                fan
                Participant

                  It works,thanks.

                  #15555
                  Gavalakis
                  Keymaster

                    You are very welcome 🙂

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