This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.Reflection; | |
| using UnityEditor; | |
| using UnityEngine; | |
| namespace MultiScreenshotCaptureNamespace | |
| { | |
| internal static class ReflectionExtensions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void Update () { | |
| // Handle native touch events | |
| foreach (Touch touch in Input.touches) { | |
| HandleTouch(touch.fingerId, Camera.main.ScreenToWorldPoint(touch.position), touch.phase); | |
| } | |
| // Simulate touch events from mouse events | |
| if (Input.touchCount == 0) { | |
| if (Input.GetMouseButtonDown(0) ) { | |
| HandleTouch(10, Camera.main.ScreenToWorldPoint(Input.mousePosition), TouchPhase.Began); |