- Home /
Changing Icons through code for UWP
So I am trying to make an editor script to make building for the HoloLens easier. I am having trouble with changing the Icons through code. When I use "SetIconsForTargetGroup" I have to specify the BuildTargetGroup, but since there is no UWP I used WSA. WSA does not contain icons?
Anyone know what i should do?
To specify these icones I would like to change:
And this is what I tried:
This is the fix: PlayerSettings.WSA.SetVisualAssetsImage(pDataPath + "88x88.png", PlayerSettings.WSAImageType.UWPSquare44x44Logo, PlayerSettings.WSAImageScale._200); PlayerSettings.WSA.SetVisualAssetsImage(pDataPath + "100x100.png", PlayerSettings.WSAImageType.PackageLogo, PlayerSettings.WSAImageScale._200); PlayerSettings.WSA.SetVisualAssetsImage(pDataPath + "142x142.png", PlayerSettings.WSAImageType.UWPSquare71x71Logo, PlayerSettings.WSAImageScale._200); PlayerSettings.WSA.SetVisualAssetsImage(pDataPath + "300x300.png", PlayerSettings.WSAImageType.UWPSquare150x150Logo, PlayerSettings.WSAImageScale._200); PlayerSettings.WSA.SetVisualAssetsImage(pDataPath + "620x300.png", PlayerSettings.WSAImageType.UWPWide310x150Logo, PlayerSettings.WSAImageScale._200); PlayerSettings.WSA.SetVisualAssetsImage(pDataPath + "620x620.png", PlayerSettings.WSAImageType.UWPSquare310x310Logo, PlayerSettings.WSAImageScale._200); PlayerSettings.WSA.SetVisualAssetsImage(pDataPath + "1240x600.png", PlayerSettings.WSAImageType.SplashScreenImage, PlayerSettings.WSAImageScale._200);
Answer by Blenzstrike · May 28, 2019 at 12:23 PM
To Clearify I tried all of the different "IconKind" that it has. It keeps giving me this error: