Disable TouchScriptInputModule in script

Ask for help and post bugs.

Disable TouchScriptInputModule in script

Postby freeworld » Mon Apr 16, 2018 12:28 pm

Hi,

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.
Best,
freeworld
freeworld
 
Posts: 1
Joined: Mon Apr 16, 2018 12:17 pm

Return to Help and Bugs

Who is online

Users browsing this forum: Baidu [Spider] and 1 guest