Hello,
I want to change a button normal and highlighted colors via code (C#)in Unity 5 for use in Windows 8 / Phone 8.1. I followed the answer from Changing UI Button color C# -Solved , but when I build out project for Windows 8.1/ Windows phone I am getting error in Visual Studios 2013 5 CTP , but there are NO console errors and buttons are working correctly. The game plays fine in the editor.
Error from VS:
Warning 1
The command ““F:\Program Files\Unity\Editor\Data\PlaybackEngines\metrosupport\Tools\AssemblyConverter.exe” -platform=wp81 “G:\Unity Games\Outs\MathWin8\LTMathPhone8\UnityEngine.dll”
“G:\Unity Games\Outs\MathWin8\LTMathPhone8\WinRTLegacy.dll” “G:\Unity Games\Outs\MathWin8\LTMathPhone8\Assembly-CSharp.dll” “G:\Unity Games\Outs\MathWin8\LTMathPhone8\UnityEngine.UI.dll”” exited with code 1.
G:\Unity Games\Outs\MathWin8\LTMathPhone8\LTMathPhone8.csproj 190 5 LTMathPhone8
If I remove suggested fix from above, I get no errors. I don’t think UnityEngine.UI.dll likes the above fix. Is there another way to set/change button colors?
Thanks,
John