- Home /
How Can i Fade In a GameObject with LeanTwean plugin?
Hello Guys. im having a problem in my code with Leantwean plugin. im unabling to fade in a gameobject i dont know where is the problem but when i use to fade in a gameobject its going to be fade out. Here is my code.
void ShowTables(){ GameObject Blink = (GameObject)Instantiate (listOfTables, Vector3.zero, Quaternion.identity); LeanTween.alpha (Blink, -1.0f, 1.5f).setDelay (0.5f); GameObject[] obj = GameObject.FindGameObjectsWithTag ("Root"); for (var i = 0; i < obj.Length; i++) { Destroy(obj[i]); } }
anyone can help me? thanx.
Answer by ios.digitaldividend · Feb 01, 2016 at 05:13 PM
Yep its Done. Here is the solution:
let u have a prefab or a GameObject first fade it out to zero then the next Scene loaded make it fade in at 1. and its done.
Your answer
![](https://koobas.hobune.stream/wayback/20220612061118im_/https://answers.unity.com/themes/thub/images/avi.jpg)