- Home /
 
               Question by 
               Poienar_Robert · Apr 16, 2018 at 08:43 AM · 
                scripting probleminputinputmanagersimulate  
              
 
              Is there a way to modify Input Manager so that an ax is be able simulate an input from code?
Hello, I am asking if there is a way to simulate an ax from code. What I mean is that a class is something like this:
 public class Capsule : MonoBehaviour {
 private void Update()  
  { 
  if (Input.GetAxisRaw("Horizontal")>0) 
  { 
  //do something 
  } 
  }
 }
I want to enter the if statement without pressing anything only via code. Is there a way without modifying the code?
               Comment
              
 
               
              Your answer
 
 
             Follow this Question
Related Questions
Can't read dpad inputs on controller? 1 Answer
How to provide inputs via Script? 0 Answers
Help In Making a SphereCast for 3D Tire! Working RayCast Script included! 0 Answers
Is there a way to temporarily disable an inputmanager axis through script? 1 Answer
Touch inputs on a Desktop type device 2 Answers
 koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                