Hi.
In my 2D game I added TrailRenderer
to the player object and set Mobile/Particles/Additive
shader to the material of the TrailRenderer
.
The player object was set as DontDestoryOnload
.
Everythink works fine in the editor game window but not Android.
When first time SceneManager
loaded level, TrailRenderer works fine.
But second time the color of the TrailRenderer has been changed from white to red color.
IEnumerator PlayRoutine(){
SceneManager.LoadSceneAsync ("Level"+theGameController.GetLevel());
yield return new WaitForSeconds (crossAlphaDuration);
}
Thanks for any help!