I'm using Vuforia and unity for my AR App. which has more than 2 models/image targets. To zoom in and out I used Lean Touch. But the problem is both will get zoom on pinching . I want only one to zoom which is currently detected.. OR I want reset Scale component of my 3D model/models on OnTrackingLost() function in DefaultTrackableEventHandler so that when it detects other one it shows on original scale (as i set max sim images detected to one). Thanks !
EDIT :
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class rscale : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
if (Input.GetKey (KeyCode.V)) {
transform.localScale = new Vector3 (4f, 4f, 4f);
Debug.Log("scaling to 4");
}
}
}
BUT THIS SIMPLE SCRIPT IS ALSO NOT WORKING ?