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...
|
| Canvas | TargetCanvas |
| | the canvas to display the TouchPrefabs on
|
| RectTransform | TouchPrefab |
| | the prefabs to instantiate to signify the position of the touches
|
| int | TouchProvision = 6 |
| | the amount of these prefabs to pool and provision
|
|
| virtual void | Start () |
| | On Start we initialize our pool.
|
| virtual void | Initialization () |
| | Creates the pool of prefabs.
|
| virtual void | Update () |
| | On update we detect touches and move our prefabs at their position.
|
| virtual void | DetectTouches () |
| | Acts on all touches.
|
| virtual void | DisableAllDisplays () |
| | Disables all touch prefabs.
|
| virtual void | OnDisable () |
| | When this mono gets disabled we turn all our prefabs off.
|
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.
◆ DetectTouches()
| virtual void MoreMountains.Tools.MMDebugTouchDisplay.DetectTouches |
( |
| ) |
|
|
protectedvirtual |
◆ 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.
◆ _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: