Search Unity

How to disable Input Controls when Timeline starts?

Discussion in 'Timeline' started by SamRock, Jun 21, 2019.

  1. SamRock

    SamRock

    Joined:
    Sep 5, 2017
    Posts:
    250
    Hi,

    How do I disable my main character's Input control when the Timelines start? And revert back when timelines end?

    Usually when a cutscene is running , I am able to walk around , jump which I want to disable.
    Please advice how I can achieve this.
     
  2. pikachuxxx

    pikachuxxx

    Joined:
    Jan 22, 2019
    Posts:
    17
    Probably you'll need to make an input manager that handles all of the various input events in the game and then check if the timeline is playing and disable it and re enable it, you can also try using timeline signals they work the same as animation events.