Forum Discussion
5 Replies
- flarbMHCP Partner
Is there a way to remove the jump button on mobile?
- mangothebuilderMHCP Member
// This script Execution Mode must be set to Local. import * as hz from 'horizon/core'; class DisableControls extends hz.Component { static propsDefinition = {}; // Automatically called when the world starts. start() { // Disables the onscreen buttons for the mobile player who is set to the owner of the object this script is attached to. PlayerControls.disableSystemControls(); } } - flarbMHCP Partner
So if disable system controls, I can still add my own custom buttons? I want to have one button on the interface but not to jump.
- gausrothMHCP Mentor
Yes you can add your own buttons.