Feel  3.16
The best way to improve your game's feel and make it extra juicy
MoreMountains.Tools.MMTouchControls Class Reference
Inheritance diagram for MoreMountains.Tools.MMTouchControls:

Public Types

enum  InputForcedMode { InputForcedMode.None, InputForcedMode.Mobile, InputForcedMode.Desktop }
 

Public Member Functions

virtual void SetMobileControlsActive (bool state)
 Use this method to enable or disable mobile controls More...
 

Public Attributes

bool AutoMobileDetection = true
 
InputForcedMode ForcedMode
 Force desktop mode (gamepad, keyboard...) or mobile (touch controls) More...
 

Protected Member Functions

virtual void Start ()
 We get the player from its tag. More...
 

Protected Attributes

CanvasGroup _canvasGroup
 
float _initialMobileControlsAlpha
 

Properties

virtual bool IsMobile [get, protected set]
 

Member Enumeration Documentation

◆ InputForcedMode

Enumerator
None 
Mobile 
Desktop 

Member Function Documentation

◆ SetMobileControlsActive()

virtual void MoreMountains.Tools.MMTouchControls.SetMobileControlsActive ( bool  state)
virtual

Use this method to enable or disable mobile controls

Parameters
state

◆ Start()

virtual void MoreMountains.Tools.MMTouchControls.Start ( )
protectedvirtual

We get the player from its tag.

Member Data Documentation

◆ _canvasGroup

CanvasGroup MoreMountains.Tools.MMTouchControls._canvasGroup
protected

◆ _initialMobileControlsAlpha

float MoreMountains.Tools.MMTouchControls._initialMobileControlsAlpha
protected

◆ AutoMobileDetection

bool MoreMountains.Tools.MMTouchControls.AutoMobileDetection = true

If you check Auto Mobile Detection, the engine will automatically switch to mobile controls when your build target is Android or iOS. You can also force mobile or desktop (keyboard, gamepad) controls using the dropdown below.Note that if you don't need mobile controls and/or GUI this component can also work on its own, just put it on an empty GameObject instead.

◆ ForcedMode

InputForcedMode MoreMountains.Tools.MMTouchControls.ForcedMode

Force desktop mode (gamepad, keyboard...) or mobile (touch controls)

Property Documentation

◆ IsMobile

virtual bool MoreMountains.Tools.MMTouchControls.IsMobile
getprotected set

The documentation for this class was generated from the following file: