Play() but UpdateCutscene() Before Sample(), makes frame 0 event not work.

Forums 💬 Slate Sequencer ⚙️ Support Play() but UpdateCutscene() Before Sample(), makes frame 0 event not work.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #19889
    yinhao7700
    Participant

      Hello, I updated from slate v2.1.5 to v2.2.1. I found that in the Play method of Cutscene, there was originally a code
      Sample();//immediately update once now instead of waiting LaterUpdate, FixedUpdate etc.
      Changed to UpdateCutscene(Time.deltaTime);//immediately update once now instead of waiting LaterUpdate, FixedUpdate etc.
      But this will cause currentTime += deltaTime before Sample() starts.
      The TriggerActionTask event I set at frame 0 will be executed when the Cutscene is played for the first time. But if the playback is halfway through and then played again after stopping, the event of frame 0 will not be executed.
      Could you please check if this is a bug?

      #19890
      Gavalakis
      Keymaster

        Hello and sorry for the late reply!
        I confirm that this change indeed creates this bug (while trying to solve another unrelated very edge-case). Please change the code there to be like in the previous version calling Sample() instead. This will of course be fixed in the next version as well.
        Thank you for letting me know!

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