Highroad Engine v1.3
Public Types | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Properties | List of all members
MoreMountains.Tools.MMTouchControls Class Reference
Inheritance diagram for MoreMountains.Tools.MMTouchControls:

Public Types

enum  InputForcedMode { None , Mobile , Desktop }
 

Public Member Functions

virtual void SetMobileControlsActive (bool state)
 

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

bool IsMobile [getprotected set]
 

Member Enumeration Documentation

◆ InputForcedMode

Enumerator
None 
Mobile 
Desktop 

Member Function Documentation

◆ SetMobileControlsActive()

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

◆ 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

bool MoreMountains.Tools.MMTouchControls.IsMobile
getprotected set

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