Hello. I'm using unity's new input system & my own input algorithm.
I just simply want to replace your built-in input system with mine
I tried to figure out myself but it didn't work.
How can I call or deliver certain input data to dialogue system?
Replace built-in input system
Re: Replace built-in input system
Hi,
Assign your replacement methods to InputDeviceManager.instance.GetButtonDown, GetButtonUp, and GetAxis. Example:
Assign your replacement methods to InputDeviceManager.instance.GetButtonDown, GetButtonUp, and GetAxis. Example:
Code: Select all
void Start()
{
InputDeviceManager.instance.GetButtonDown = MyGetButtonDownMethod;
}
bool MyGetButtonDownMethod(string buttonName)
{
// Here, return true if the button was just pressed down this frame. Otherwise return false.
}