Within double points to enlarge the Angle of view, to the narrow Angle of view, now code to zoom in, but there is no limit, and scaling of fast don't know how to adjust
Using System. The Collections;
using System.Collections.Generic;
Using UnityEngine;
Using HedgehogTeam. EasyTouch;
Using UnityEngine. UI;
Public class easyTouchTest: MonoBehaviour
{
Void OnEnable ()
{
EasyTouch. On_Pinch +=On_Pinch;
}
Void OnDisable ()
{
EasyTouch. On_Pinch -=On_Pinch;
}
Void OnPinch Gesture (ges) {
Camera. The main. The transform. Translate (new Vector3 (0, 0, ges. DeltaPinch));
}
}