Mobile Virtual Controller

As of version 1.3.0 a virtual mobile controller is now included with Prime Ball Controller. By default this feature is disabled.

To enable the virtual controller:

Locate the Virtual Mobile Controller game object inside the Player game object and enable it in the Unity inspector. That's it.

To test the controller with a keyboard and mouse in the Unity Editor you need to enable Simulate Touch Input From Mouse Or Pen. This is found in Window->Analysis->Input Debugger. Then select options and enable the Simulate Touch Input From Mouse Or Pen.

Important Unity 6 Bug with Android

When building mobile for Android there is a bug with Unity 6 that causes touch controls not to function. You must change a project setting to work around this. In Unity 6 the default Application Entry Point has been changed from Activity to GameActivity which appears to be buggy. You need to switch it back to Activity.

  • Open Project Settings
  • Select Player
  • Select the Android Tab if not already selected
  • Select Other Settings
  • Scroll down to application entry point and select Activity and de-select GameActivity

Application Entry Point