Search Unity

universal windows store - icons

Discussion in 'Windows' started by wouter_vugt, Dec 18, 2015.

  1. wouter_vugt

    wouter_vugt

    Joined:
    Feb 25, 2015
    Posts:
    129
    I want to publish my app to the windows store, but there are a couple of confusing things regarding the icons/splash screens.

    1.it seems there are 40+ icon sizes needed (store logo, small logo, medium tile,small tile, windows phone tiles and all in with different scales as well).
    Do I need to create all these icons and assign them on each slot?
    Or should I only used the maximun scaled version, or only the store icon etc?

    2.I use -> PlayerSettings.SetIconsForTargetGroup(BuildTargetGroup.WSA, icons);
    In order to automatically assign all icons (since I work on different apps from one project).
    However when I run -> PlayerSettings.GetIconSizesForTargetGroup It returns 0.
    Does this mean that this is not supported yet fro the windows platform?
    Is there a way to automate this process some other way?
    (ios and android works fine this way).

    thnx, bye
     
  2. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,736
    For Windows Store you should use PlayerSettings.WSA.GetVisualAssetsImage() and SetVisualAssetsImage().
    You should consult Microsofts documentation over which are required and recommended.
     
  3. wouter_vugt

    wouter_vugt

    Joined:
    Feb 25, 2015
    Posts:
    129
    Ok will check it out. And all icons need to be filled? or only some?
     
    User340 likes this.
  4. wouter_vugt

    wouter_vugt

    Joined:
    Feb 25, 2015
    Posts:
    129
    never mind I missed the last sentence of your post. thanx
     
  5. wouter_vugt

    wouter_vugt

    Joined:
    Feb 25, 2015
    Posts:
    129
    I cant find anything on how to use: PlayerSettings.WSA.GetVisualAssetsImage() and SetVisualAssetsImage().

    Could you point me in the right direction?
     
    User340 likes this.
  6. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,736
    Ouch, looks like they are missing from documentation :(

    Code (CSharp):
    1. public static string GetVisualAssetsImage(WSAImageType type, WSAImageScale scale);
    2. public static void SetVisualAssetsImage(string image, WSAImageType type, WSAImageScale scale);
    3.  
    4. enum WSAImageScale
    5. {
    6.    _80  = 80,
    7.    _100 = 100,
    8.    _125 = 125,
    9.    _140 = 140,
    10.    _150 = 150,
    11.    _180 = 180,
    12.    _200 = 200,
    13.    _240 = 240,
    14.    _400 = 400,
    15.  
    16.    Target16  = 16,
    17.    Target24  = 24,
    18.    Target48  = 48,
    19.    Target256 = 256,
    20. }
    21.  
    22. enum WSAImageType
    23. {
    24.    // Generic
    25.    PackageLogo = 1,
    26.    SplashScreenImage = 2,
    27.  
    28.    // WSA
    29.    StoreTileLogo = 11,
    30.    StoreTileWideLogo = 12,
    31.    StoreTileSmallLogo = 13,
    32.    StoreSmallTile = 14,
    33.    StoreLargeTile = 15,
    34.    
    35.    // WP 8.1
    36.    PhoneAppIcon = 21,
    37.    PhoneSmallTile = 22,
    38.    PhoneMediumTile = 23,
    39.    PhoneWideTile = 24,
    40.    PhoneSplashScreen = 25,
    41.  
    42.    // UWP
    43.    UWPSquare44x44Logo = 31,
    44.    UWPSquare71x71Logo = 32,
    45.    UWPSquare150x150Logo = 33,
    46.    UWPSquare310x310Logo = 34,
    47.    UWPWide310x150Logo = 35,
    48. }
     
  7. Anisoropos

    Anisoropos

    Joined:
    Jul 30, 2012
    Posts:
    102
    @Aurimas Cernius Can we get some more info on the subject? There are 90 something icon variations in there.. do we have to create them one by one and drop them in the inspector? In the end it's 2 variations; 1:1 and 31:15 ratio, in a bunch of different resolutions.

    Isn't there an option to just provide two images (square and wide) and have them scaled and placed accordingly automatically?

    Thanks :)
     
  8. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,736
    We don't do anything special regarding those images, just populate them over to VS solution.
    If you are looking for a simpler way to make them, search this forum, someone has posted a link to a tool, that helps making those images.
     
  9. Anisoropos

    Anisoropos

    Joined:
    Jul 30, 2012
    Posts:
    102
    I ended up purchasing a nice editor utility from asset store which does the job for all 3 platforms (Android, iOS, WP). I did find a VS plugin which does the same for Windows Phone only but I haven't tested it.
     
  10. wouter_vugt

    wouter_vugt

    Joined:
    Feb 25, 2015
    Posts:
    129
    Hi Aurimas,

    Could you explain how this would work exactly, I can't figure it out.
    Why is the image a string, how can I actually use this function (for all icons), etc.
    Hopefully you can tell me, becaus I only get errors while trying:
    `test.SetVisualAssetsImage(string, WSAImageType, WSAImageScale)' must have a body because it is not marked abstract, extern, or partial"
     
  11. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,736
    It is string because we only store a path to image in settings and copy that file when building.
    Can you show the code example how you use it?
     
  12. SoylentGraham

    SoylentGraham

    Joined:
    Nov 12, 2013
    Posts:
    46
    Link to hololens tile/icon recommendations. https://developer.microsoft.com/en-us/windows/holographic/submitting_an_app_to_the_windows_store#prepare_image_assets_included_in_the_appx

    (this is one of the first google results, so actual links/information is more useful than a suggestion to "look at the docs")


    Required Asset Recommended Scale Image Format Where is this displayed?
    Square 71x71 Logo Any PNG N/A
    Square 150x150 Logo 150x150 (100% scale)
    225x225 (150% scale) PNG | Start pins and All Apps (if 310x310 isn't provided), Store Search Suggestions
    Store Listing Page, Store Browse, Store Search
    Wide 310x150 Logo Any PNG N/A
    Store Logo 75x75 (150% scale) PNG Dev Center, Report App, Write a Review, My Library
    Splash Screen 930x450 (150% scale) PNG Pinned App Tile
    There are also some recommended assets which HoloLens can take advantage of.

    Recommended Assets Recommended Scale Where is this displayed?
    Square 310x310 Logo 310x310 (150% scale) Start pins and All Apps
     
  13. Gerold_Meisinger

    Gerold_Meisinger

    Joined:
    Sep 8, 2015
    Posts:
    93
    What's the name of the plugin?
     
  14. Gerold_Meisinger

    Gerold_Meisinger

    Joined:
    Sep 8, 2015
    Posts:
    93
    Anisoropos likes this.
  15. Anisoropos

    Anisoropos

    Joined:
    Jul 30, 2012
    Posts:
    102
    UWP Tile Generator - clicking on the hyperlink would have taken you there directly :p
     
  16. Gerold_Meisinger

    Gerold_Meisinger

    Joined:
    Sep 8, 2015
    Posts:
    93
    I was referring to the Unity plugin.

    > I ended up purchasing a nice editor utility from asset store which does the job for all 3 platforms (Android, iOS, WP).
     
    Anisoropos likes this.
  17. DoomerDGR8

    DoomerDGR8

    Joined:
    May 15, 2015
    Posts:
    12
    Which one did you get from asset store?
     
  18. Mikael-H

    Mikael-H

    Joined:
    Apr 26, 2013
    Posts:
    309
    For anyone reading this later, there is a generator in VS2017 which will create almost all the images from a single source. Just open the manifest and go to visual assets.
     
    wmadwand likes this.
  19. SachinGanesh

    SachinGanesh

    Joined:
    Jun 28, 2015
    Posts:
    20
    Yes! Works in VS2017. Thank you!
     
  20. darkyer

    darkyer

    Joined:
    Sep 11, 2013
    Posts:
    21
    I just can´t make the VS2017 work, how do you do it?
     
  21. darkyer

    darkyer

    Joined:
    Sep 11, 2013
    Posts:
    21
    I just found how thx :)
     
    SachinGanesh likes this.