Feel  3.16
The best way to improve your game's feel and make it extra juicy
MoreMountains.Tools.MMDebugTouchDisplay Class Reference

Add this class to a canvas and it'll automatically reposition TouchPrefabs at the position of touches You can set a higher TouchProvision if your game gets more than the default number (6) simultaneous touches Disable/enable this mono for it to stop/work More...

Inheritance diagram for MoreMountains.Tools.MMDebugTouchDisplay:

Public Attributes

Canvas TargetCanvas
 the canvas to display the TouchPrefabs on More...
 
RectTransform TouchPrefab
 the prefabs to instantiate to signify the position of the touches More...
 
int TouchProvision = 6
 the amount of these prefabs to pool and provision More...
 

Protected Member Functions

virtual void Start ()
 On Start we initialize our pool More...
 
virtual void Initialization ()
 Creates the pool of prefabs More...
 
virtual void Update ()
 On update we detect touches and move our prefabs at their position More...
 
virtual void DetectTouches ()
 Acts on all touches More...
 
virtual void DisableAllDisplays ()
 Disables all touch prefabs More...
 
virtual void OnDisable ()
 When this mono gets disabled we turn all our prefabs off More...
 

Protected Attributes

List< RectTransform > _touchDisplays
 

Detailed Description

Add this class to a canvas and it'll automatically reposition TouchPrefabs at the position of touches You can set a higher TouchProvision if your game gets more than the default number (6) simultaneous touches Disable/enable this mono for it to stop/work

Member Function Documentation

◆ DetectTouches()

virtual void MoreMountains.Tools.MMDebugTouchDisplay.DetectTouches ( )
protectedvirtual

Acts on all touches

◆ DisableAllDisplays()

virtual void MoreMountains.Tools.MMDebugTouchDisplay.DisableAllDisplays ( )
protectedvirtual

Disables all touch prefabs

◆ Initialization()

virtual void MoreMountains.Tools.MMDebugTouchDisplay.Initialization ( )
protectedvirtual

Creates the pool of prefabs

◆ OnDisable()

virtual void MoreMountains.Tools.MMDebugTouchDisplay.OnDisable ( )
protectedvirtual

When this mono gets disabled we turn all our prefabs off

◆ Start()

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

On Start we initialize our pool

◆ Update()

virtual void MoreMountains.Tools.MMDebugTouchDisplay.Update ( )
protectedvirtual

On update we detect touches and move our prefabs at their position

Member Data Documentation

◆ _touchDisplays

List<RectTransform> MoreMountains.Tools.MMDebugTouchDisplay._touchDisplays
protected

◆ TargetCanvas

Canvas MoreMountains.Tools.MMDebugTouchDisplay.TargetCanvas

the canvas to display the TouchPrefabs on

◆ TouchPrefab

RectTransform MoreMountains.Tools.MMDebugTouchDisplay.TouchPrefab

the prefabs to instantiate to signify the position of the touches

◆ TouchProvision

int MoreMountains.Tools.MMDebugTouchDisplay.TouchProvision = 6

the amount of these prefabs to pool and provision


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