I made an application where I build a maze and I need to change the maze cell colors in different situations. In the editor everything works fine, the colors always change. When I built the app, the colors change correctly in one of the scenes, but remain the same when I go back to the menu and to a different scene. So the color changes work correctly in the scene I access first, but not in the other scenes. Why is this happening?
For changing color I use: renderer.material.color = Color.green;
↧