using UnityEngine;
using UnityEngine.UI;
using System.Collections;
public class ZoomObject : MonoBehaviour {
private float hsliderval = 1.0f;
public GameObject objek;
public Slider slider; //assign it in Inspector or initialize it in Start() or Awake()
void Start () {
hsliderval = 1.0f;
}
public void sliderT(){ //needs to be public
hsliderval = slider.value;
}
void Update () {
objek.transform.localScale = new Vector3(0.55f, 0.55f, 0.55f) * hsliderval * 0.1f;
}
}
Slider :
ZoomObject :
Heey, I got exactly the same problem. I have a Nexus 5 with Android 5.1.1 I tried logcat but couldn't find anything yet
Heey, I got exactly the same problem. I have a Nexus 5 with Android 5.1.1 I tried logcat but couldn't find anything yet
– NVriezen