Page 1 of 1

Disable TouchScriptInputModule in script

PostPosted: Mon Apr 16, 2018 12:28 pm
by freeworld

It would be really nice to be able to disable a TouchScriptInputModule component which is side-by-side with a StandaloneInputModule (simple way to achieve possibility to have either mouse or touch input active), but TouchScriptInputModule is an internal class, so it is not easily accessible (in order to use in GetComponent). It is unsafe to use the BaseInputModule class in GetComponent, because the StandardInputModule also inherits from it.
Does anyone know why the TouchScriptInputModule class is internal and not public or is there a simpler way to disable the TouchScriptInputModule in order to have either mouse (StandaloneInputModule ) or touch input active? Let's say the choice only needs to be made once at startup.

Thanks in advance.