I have this slider which controlling position of the colorful object’s parent gameObject. I wan’t to mirroring screen like the second picture. How can I do this?
using UnityEngine;
using System.Collections;
using UnityEngine.UI;
public class SliderController : MonoBehaviour {
public Slider slider;
Vector3 v3 ;
void Start () {
v3 = new Vector3(0,0,0);
}
public void ChangeValue () {
v3 = new Vector3(slider.value,0,0);
gameObject.transform.position = v3;
}
}