- Home /
No user input without checking on every update?
It's a cutscene and I want to ignore all input. I'd rather remove user controls completely while it plays and then re-add them after than check if it's a cutscene for every single frame. How can I do this?
Are you using C# controller scripts? Which language you use to script?
how do you start the cutscene? is it a trigger or something else?
Answer by bloodyatheist · May 03, 2014 at 10:04 AM
you can do this in many ways and they mostly depend on the way you implemented the game.
one way is to have some boolean or anything else that indicate that your in a cutscene and add to your input conditions
if(...&&!CutScenePlaying)
{
...
}
or you can remove/disable the scripts that are used for input in the beginning of a cutscene and then add/enable them at the end
it all depends on your implementation..
Your answer
Follow this Question
Related Questions
mobile screen size horizontal fix 0 Answers
Unity gameobject disabled but emission still showing 1 Answer
How to cut a model ? 0 Answers
deactivating object from a different scene 1 Answer
Rotate function on c# 1 Answer