- Home /
Changing material with C# lags on Windows phone but not android
Hi. I have a problem, I have some gui buttons that change the material on an object when pressed.
When playing the game on an Android device there's no lag but when I run it on a Windows Phone whenever the button is pressed the game freezes for half a second and then works again. Do I need to change my code so that it doesn't lag on windows phone?
I used to use this line of code to change the color:
renderer.sharedMaterial.color = Color.red;
but I changed it to this instead:
renderer.material = redMaterial;
Answer by Jessy · Jan 16, 2014 at 06:14 PM
No. Report the performance difference as a bug.
Reported it. know how long time it usually takes for them to fix it? Because it's a critical part of my game :/ And it would suck if I weren't able to put it on the windows phone store.
Or is there some method I didn't think of that I can use?