- Home /
Is it good to specify what Actions of the Input Manager do on several Scripts?
You can specify what an Action of the Input System does with lines like: controls.CustomActionMap.CustomAction.performed += ctx => / whatever you want to do /; in the Awake()-Method. Can you do that in multiple scripts or should you do all this in one script? Does this influence performance?
Thank you for answering!
Answer by tdx110 · Mar 17, 2021 at 08:55 PM
Can be in multiple scripts. The difference in performance is small. However, it's better to do everything in one script because the craving in the code is and you don't have to look for several different codes.
Your answer
![](https://koobas.hobune.stream/wayback/20220613030848im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Help In Making a SphereCast for 3D Tire! Working RayCast Script included! 0 Answers
New Input System : How to differentiate 2 players, but the 2 players have the same Player Input 0 Answers
Help me with the script on doing combo atk 3 Answers
Input Lag in Animation Script 1 Answer
URGENT: Info request about run gyroscope with Input.acceleration Script in UNITY-3D !!! 0 Answers