SetMobileControlsGUIEnabled

Method

Enables or Disables mobile controls GUI. If disabled, this will hide the default controls GUI on mobile devices.

Definition

void SetMobileControlsGUIEnabled(SpatialMobileControlsGUITypeFlags guis, bool enabled)
void SetMobileControlsGUIEnabled(SpatialMobileControlsGUITypeFlags guis, bool enabled)

Parameters

ParameterDescription
SpatialMobileControlsGUITypeFlags guis
bool enabled

Examples

public void DisableMobileJumpButton()
{
//Hide the mobile jump button.
SpatialBridge.coreGUIService.SetMobileControlsGUIEnabled(SpatialMobileControlsGUITypeFlags.AvatarJumpButton, enabled: false);
}
public void DisableMobileJumpButton()
{
//Hide the mobile jump button.
SpatialBridge.coreGUIService.SetMobileControlsGUIEnabled(SpatialMobileControlsGUITypeFlags.AvatarJumpButton, enabled: false);
}