0
Declined

Unity Remote Support by Adding a Boolean in CameraMotor for RotationInput

GameUX 5 months ago in Game Creator updated by Marti (Lead Developer) 5 months ago 1

Unity Remote allows devs to run on a mobile device directly by running in Unity's editor, without a build. However, it does not modify "Application.isMobilePlatform", which appears to be read only. 


Request: Please add a boolean flag to CameraMotors (Adventure and FirstPerson) RotationInput so opening conditional is an OR for isMobilePlatform or the boolean. 


Example (reusing TouchStickManager.FORCE_USAGE, but could be something else): 

if (Application.isMobilePlatform || TouchStickManager.FORCE_USAGE)

This would allow mobile devs to set by code and see both the left touchstick move and the right view rotate the screen. Thanks for consideration.

Unity version:
any
Game Creator version:
any
Declined

I don't think it's a good idea to add a checkbox onto the camera motor, as that would make Game Creator more error-prone (a user might accidentally mark it and wonder why the motor is not behaving correctly during playmode).

However, for these cases it should be pretty straightforward to create a script that sets the touchstick's FORCE_USAGE to true.

Simply create a new script, add the following code:

private void Awake()

{

    TouchStickManager.FORCE_USAGE = true;

}

Attach it to any game object and it should display the joystick on screen. Hope this helps!