Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

xARM: Aspect and Resolution Master [v1.9]

Discussion in 'Assets and Asset Store' started by Thavron, Aug 16, 2013.

  1. Thavron

    Thavron

    Joined:
    Aug 29, 2012
    Posts:
    364
    Thanks for purchasing xARM.

    Is the behavior the same if you set the Game View to free aspect and resize it manually to a resolution that doesn't work (resolution can be seen in Game View Stats). Please try this while xARM is removed from the project.

    You can also try a higher Update Delay (see xARM Options).
    If there is a setting in DoozyUI to specify the current resolution/aspect or a method to trigger an update you can use xARM's Delegates to do so.
     
  2. rdvt

    rdvt

    Joined:
    Aug 23, 2014
    Posts:
    23
    Hi,

    xARM work great but in Unity5.4 soon would be a version available??
     
  3. Thavron

    Thavron

    Joined:
    Aug 29, 2012
    Posts:
    364
    I'm glad you like it and thanks for your feedback.

    Unfortunately there is a known bug in Unity v5.4.0.
    The yield instruction WaitForEndOfFrame doesn't work in Edit and Pause mode.
    In Play mode it works.

    I'm in contact with Unity. They could reproduce the bug and I hope it gets fixed very soon (v5.4.1 ?).
    Please vote for the bug so it gets a higher priority for the Unity-Devs.
    Vote: https://issuetracker.unity3d.com/is...orendofframe-doesnt-work-in-executeineditmode

    I'm also searching for a workaround.

    Until the bug in Unity v5.4.0 is fixed (or I find a workaround) you can still use xARM's features in Play mode.

    UPDATE:
    Unity fixed the bug with 5.4.2.
    See https://issuetracker.unity3d.com/is...orendofframe-doesnt-work-in-executeineditmode

    So xARM will again fully work with 5.4.2+
    Thanks a lot for voting of that bug!
     
    Last edited: Sep 17, 2016
    rdvt likes this.
  4. Thavron

    Thavron

    Joined:
    Aug 29, 2012
    Posts:
    364
    Unity fixed the WaitForEndOfFrame bug with 5.4.2!
     
  5. TechDeveloper

    TechDeveloper

    Joined:
    Sep 5, 2016
    Posts:
    75
    any idea when 5.4.2 will be out? lol probably when it ready...
     
  6. Thavron

    Thavron

    Joined:
    Aug 29, 2012
    Posts:
    364
    xARM v1.6.4 is awaiting approval.
    It supports Unity 5.4.2! If you're using 5.4.0 or 5.4.1 ensure to upgrade.

    Changelog v1.6.4:
    + Unity 5.4.2 support
    + existing ScreenCap description updated to include:
    + iPhone 7
    + iPhone 7 Plus​
    + Bugfix: ScreenCap shows correct rendering result after resolution change
    + Bugfix: Game View resolution change is correctly detected in HiDPI mode
    + Bugfix: Game View position doesn't change on update
    + Minor bugfixes​
     
    TechDeveloper likes this.
  7. f1chris

    f1chris

    Joined:
    Sep 21, 2013
    Posts:
    335
    I'm having issues with Beta 5.5 v11

    Are you supporting it at this point ?

    thx
     
  8. rdvt

    rdvt

    Joined:
    Aug 23, 2014
    Posts:
    23
    Support unity 5.5 today released?
     
  9. f1chris

    f1chris

    Joined:
    Sep 21, 2013
    Posts:
    335
    Crickets........
     
  10. Thavron

    Thavron

    Joined:
    Aug 29, 2012
    Posts:
    364
    Sorry for not replying sooner.
    Support for Unity 5.5 is in the works.
     
    rdvt likes this.
  11. Angry-Gobbler

    Angry-Gobbler

    Joined:
    Dec 8, 2013
    Posts:
    4
    Any idea when support for Unity 5.5 will happen? Just to get a rough idea. Are we talking a couple of weeksor something longer? Thanks a lot. BTW I really love this tool.
     
  12. AndresPGC

    AndresPGC

    Joined:
    Mar 20, 2014
    Posts:
    10
    Hey, I bought this asset today and I found a really weird bug.
    When I open the xArm Gallery, my gameview resolution changes randomly each second, and I can't do anything. Idk if this is a bug of the asset, or just because the asset is not working on 5.5 yet(im using unity 5.5, btw).
     
  13. Thavron

    Thavron

    Joined:
    Aug 29, 2012
    Posts:
    364
    Thanks for purchasing.
    That's an issue with Unity 5.5 I'm currently working on. Try to disable xARM Gallery's auto update to prevent it.
    If inside an update loop switch to play mode and then back to edit mode to stop it.

    I'm glad you love it.
    I've planned to release an update including support for Unity 5.5 in a few weeks.
    Sorry for the delay.
     
  14. recon0303

    recon0303

    Joined:
    Apr 20, 2014
    Posts:
    1,634
    March still no update..Ugh, we are using 5.5 and bought this for our mobile games..... useless right now..
     
  15. MaskedMouse

    MaskedMouse

    Joined:
    Jul 8, 2014
    Posts:
    1,064
    We'd like to see the update going live as well, since we use 5.5.0p3.
    Is the update on its way or is it going to take a while longer?
     
  16. Thavron

    Thavron

    Joined:
    Aug 29, 2012
    Posts:
    364
    Sorry for the delay and inconvenience.

    xARM v1.7 is submitted to the Asset Store and awaiting approval.
    Among other things it adds Unity 5.5 support and fixes the infinit loop bug.

     
    recon0303 likes this.
  17. Thavron

    Thavron

    Joined:
    Aug 29, 2012
    Posts:
    364
    xARM 1.7 is now available.
     
  18. cwest-ww

    cwest-ww

    Joined:
    Mar 14, 2017
    Posts:
    2
    Hello,
    I just purchased the plugin and for some reason the get blank screens in gallery and preview despite the undocked game view showing my interface.
    I've attached screen captures of what I am seeing in the xARM windows.

    Any help is greatly appreciated.
    Thanks.
    Chris W.

    1.jpg 2.jpg
     
  19. Thavron

    Thavron

    Joined:
    Aug 29, 2012
    Posts:
    364
    Thanks for purchasing xARM.
    Did you use manual (1x) or one of the auto updates (Edit, Pause, Play)?
    If that doesn't work, please ensure the Game View is set to Free Aspect and try with HiDPI mode en- or dis-abled (see xARM Options).

    Please also take a look at the Getting Started section of the xARM User Guide to get a quick overview of xARM's features.
     
    Last edited: Apr 3, 2017
  20. cwest-ww

    cwest-ww

    Joined:
    Mar 14, 2017
    Posts:
    2
    Game view is set to Free Aspect and tried enabling/disabling HiDPI.
    Can now see it only when Running the project with Edit,Play & 1:1 Phys enabled.

    But still getting a white square when in edit mode.
     
  21. f1chris

    f1chris

    Joined:
    Sep 21, 2013
    Posts:
    335
    Are you working on a 5.6 update ?
     
  22. Thavron

    Thavron

    Joined:
    Aug 29, 2012
    Posts:
    364
    xARM v1.7 does already support Unity 5.6.
    I've updated the description.

    Please try the following and check if it works after each one:
    • Close and reopen the Game View
    • Close all xARM windows, restart Unity and reopen xARM’s windows
    If the above doesn’t fix the issue:
    Open Game View’s Stats and switch between xARM’s ScreenCaps via Preview or Gallery.
    Does Stats show the correct resolution for each selected ScreenCap? (If it's 2x or 0.5x dis/enable HiDPI).

    If it still doesn't work please give me some further informations:
    Does 1x update work in Edit mode?
    What version of Unity, xARM and Win/Mac do you use?

    You can also contact me by mail.
     
  23. Zappiti

    Zappiti

    Joined:
    Dec 7, 2012
    Posts:
    1
    Hello,

    This tools is really interresting.

    Is it possible to get the device dpi, or the device diagonal size, of each preview in editor mode ?

    Because my script use theses values to resize/hide some component, and I wonder how I can use your dpi value at runtime in order to get the correct preview.

    If it is possible, I'll probably buy the tool.

    Thank you.
     
  24. Thavron

    Thavron

    Joined:
    Aug 29, 2012
    Posts:
    364
    Thanks for your interest in xARM.

    Yes, it is possible. xARM offers some delegates you can hook your code to.
    For more information please take a look at the User Guide. You can download it here.
     
  25. fieryben

    fieryben

    Joined:
    Jul 23, 2013
    Posts:
    7
    Hello,

    So I recently bought this and my main question is this: since the preview gallery shows what it'll look on different devices and aspect ratio/resolutions, when I build my game, will I need to write a script to auto-change the aspect ratio to fit the device? And if I do, will I have to write a script to figure out how to scale the game to fit the appropriate resolutions? Or will this asset do that?

    And if I have to write a script for them, is there a way to have the preview gallery use my scripts for appropriate resizing on each device?

    Thanks.
     
  26. grimmy

    grimmy

    Joined:
    Feb 2, 2009
    Posts:
    409
    I had exactly the same problem! Xarm lets me see the problems but not actually fix them . That's why I wrote Anchors Away! It's currently in review by Unity but does the job you describe. Check it out!
     
  27. Thavron

    Thavron

    Joined:
    Aug 29, 2012
    Posts:
    364
    Thanks for purchasing!

    xARM gives you previews of the devices but it is not part of a build. So the resizing is controlled by unity, the UI system etc.
    If you use e.g. anchoring and some logic based on the resolution it will work out of the box. If you do more exotic stuff you can use xARM's Delegates to hook your code so that you get the same result as on the device.
     
  28. le_duke

    le_duke

    Joined:
    Aug 30, 2011
    Posts:
    48
    Hi I recently updated a project to Unity 2017. I'm using xARM with it and it works quite well but there is an issue with the game window.
    When I hit the play button the windows is moved to the top left of the screen, but If I manually move it to see something hidden by the window. Then it start moving up the screen whenever I move the mouse. If I keep moving the mouse it's going up until I can't even see it anymore.

    Is there any existing workaround for this ?
     
  29. Thavron

    Thavron

    Joined:
    Aug 29, 2012
    Posts:
    364
    You can specify a fixed Game View position in the options, until this issue is fixed.
    Goto Options > Global Options > Game View Position and uncheck "Trace Game View position automatically". Now you can specify a fixed position.
     
  30. le_duke

    le_duke

    Joined:
    Aug 30, 2011
    Posts:
    48
    Perfect fix Thanks !
     
  31. PixelEnvision

    PixelEnvision

    Joined:
    Feb 7, 2012
    Posts:
    513
    Hi @Thavron

    Does this look accurate?
    Code (CSharp):
    1. addOrUpdateScreenCap(new xARMScreenCap("iPhone",         new Vector2(2436, 1125), "custom", "19.5:9",5.8f, 458, "@3x",     xARMScreenCapGroup.iOS, 9, -1f, "iPhone X"));
     
  32. Thavron

    Thavron

    Joined:
    Aug 29, 2012
    Posts:
    364
    Unfortunately I couldn't find an answer to this yet, it depends on the screen space Unity will use.
    If it is the complete screen the above is correct.

    But it could also be something like 2.001 x 1125px (odd, isn't it?), because you lose 435px (145pt @3x) vertically by not using the edge-to-edge thing...
    According to this: https://developer.apple.com/ios/human-interface-guidelines/overview/iphone-x/

    May be it is even another resolution...
     
  33. Tinjaw

    Tinjaw

    Joined:
    Jan 9, 2014
    Posts:
    518
    I am working in Unity 2017.x now and I am having an issue. I cannot choose which device to work on. I can generate the gallery, but I cannot choose which device I want to have displayed in the Game and Scene windows.

    Is there a 2017 version of this asset? Do you need Beta testers? I have a Mac Pro | High Sierra | 4 x 4K displays
     
  34. Thavron

    Thavron

    Joined:
    Aug 29, 2012
    Posts:
    364
    Selecting a ScreenCap in xARM Preview's dropdown or in xARM Gallery by clicking on it should resize the Game View to match the resolution.
    If this doesn't work please close all xARM windows, remove the xARM folder, reopen the project and after that import xARM again.

    If this doesn't fix the problem please let me know.
    With Unity 2017.2.0f3 on Mac I couldn't reproduce the issue.

    A new xARM version should be ready soon.
     
  35. Thavron

    Thavron

    Joined:
    Aug 29, 2012
    Posts:
    364
    According to my latest information the ScreenCap settings for iPhone X are:

    Build with Xcode older than v9 (16:9 with letterbox):
    Code (CSharp):
    1. addOrUpdateScreenCap(new xARMScreenCap("iPhone",         new Vector2(2001, 1125), "custom", "16:9“,4.7f, 458, "@3x",     xARMScreenCapGroup.iOS, 9, -1f, "iPhone X with letterbox"));
    Build with Xcode 9 (full screen):
    Code (CSharp):
    1. addOrUpdateScreenCap(new xARMScreenCap("iPhone",         new Vector2(2436, 1125), "custom", "19.5:9",5.8f, 458, "@3x",     xARMScreenCapGroup.iOS, 9, -1f, "iPhone X"));
     
  36. helios

    helios

    Joined:
    Oct 5, 2009
    Posts:
    308
    Hey buddy, thanks for this. Can confirm that it works great (for me, at least).
     
  37. Tinjaw

    Tinjaw

    Joined:
    Jan 9, 2014
    Posts:
    518
    Somehow the XARM Preview window is off somewhere beyond the borders of my screens. How can I "reset" it so that it is displayed on my screen? Is there some config file I can edit to do that?
     
  38. FaberVi

    FaberVi

    Joined:
    Nov 11, 2014
    Posts:
    145
    This plugin works with unity 2017.2.0p1?
     
  39. Thavron

    Thavron

    Joined:
    Aug 29, 2012
    Posts:
    364
    Sorry for not replying sooner. I didn't get a notification.

    The xARM Preview window's position is managed by Unity. There is no difference between xARM's windows and other EditorWindows. You can use the Layout Option (see Top Right dropdown) and try some saved layouts or use Factory Reset.

    Yes. There are only some minor known issues. An Update should be ready soon.
     
    recon0303 and FaberVi like this.
  40. recon0303

    recon0303

    Joined:
    Apr 20, 2014
    Posts:
    1,634

    Yes its needed badly, Thanks
     
  41. FIllbiker

    FIllbiker

    Joined:
    Jun 9, 2010
    Posts:
    118
    When we get iphoneX res support? Is there any way I can add it manually to be able to see it in preview until plugin update?
    Thank you
     
  42. Thavron

    Thavron

    Joined:
    Aug 29, 2012
    Posts:
    364
    xARM v1.8 is awaiting approval at the Asset Store.
    Unity 2017.2 support, new iPhone X, 8 and 8 Plus ScreenCaps as well as some bugfixes are added.

    Changelog:
     
    recon0303 likes this.
  43. Thavron

    Thavron

    Joined:
    Aug 29, 2012
    Posts:
    364
    Until xARM v1.8 is approved by the asset store you can add the following lines to the xARMManger.cs (see also the above posts).
    Code (CSharp):
    1. addOrUpdateScreenCap(new xARMScreenCap("iPhone",        new Vector2(2436, 1125), "custom", "19.5:9",5.8f, 458, "@3x",    xARMScreenCapGroup.iOS, 999, -1f, "iPhone X"));
    2. addOrUpdateScreenCap(new xARMScreenCap("iPhone",        new Vector2(2001, 1125), "custom", "16:9",  4.7f, 458, "@3x",    xARMScreenCapGroup.iOS, 999, -1f, "iPhone X 16:9 (with letterbox)"));
     
  44. FIllbiker

    FIllbiker

    Joined:
    Jun 9, 2010
    Posts:
    118
    Great! Will this work also on Unity 4 latest version?
     
  45. imtrobin

    imtrobin

    Joined:
    Nov 30, 2009
    Posts:
    1,548
    1.8 has same checksum as 1.7, did u upload wrong version?
     
  46. PixelEnvision

    PixelEnvision

    Joined:
    Feb 7, 2012
    Posts:
    513
    Looks ok to me, you can try deleting xARMSettings.xml from ProjectSettings folder for a fresh start.
     
  47. PixelEnvision

    PixelEnvision

    Joined:
    Feb 7, 2012
    Posts:
    513
    @Thavron new build working fine except it gives "ScreenCap could not been updated" error for the iPhone X 16:9 (with letterbox), other resolutions seems to be working fine. Any suggestions?
     
  48. imtrobin

    imtrobin

    Joined:
    Nov 30, 2009
    Posts:
    1,548
    I'm referring to unitypackage file.
     
  49. MaskedMouse

    MaskedMouse

    Joined:
    Jul 8, 2014
    Posts:
    1,064
    I am having the same issue but then with any resolution.
    When clicking through the xARM Gallery resolutions it eventually discards the last made screenshot and turns it into "ScreenCap could not been updated" and makes it unclickable too to re-create it.

    GameView is in FreeAspect and Retina/HiDPI is disabled.

    I have to click the 1x to make them clickable again, but the UI does not update / format properly so I have to manually click every resolution again.

    A debug log logs the following:
    Code (CSharp):
    1. SC error. Screen: 1536x2048 SC: 1600x2560
    2. UnityEngine.Debug:Log(Object)
    3. xARMManager:ReadScreenCapFromGameView(xARMScreenCap) (at Assets/xARM/Managers/xARMManager.cs:601)
    4. <UpdateScreenCapCoroutine>c__Iterator0:MoveNext() (at Assets/xARM/Components/xARMProxy.cs:79)
    Using either 2017.2 or 2017.3 does not matter.
     
  50. Thavron

    Thavron

    Joined:
    Aug 29, 2012
    Posts:
    364
    Yes. If you have problems adding the new ScreenCaps let me know.
    But afaik you can't build for iPhone X with Unity 4 or 5.

    What Version of Unity are you using? Currently xARM v1.8 is only available for 2017.2+.
    You can see the xARM version in the bottom of the xARM Options window.

    Thanks for reporting.
    Sometimes there seems to be an issue when switching between ScreenCaps.
    You can try to lower the Update Delay in xARM Options. Try setting it to 0 or 1 (if 0 gives wrong results; smone UI-Systems, etc. need the delay.)
    Using the 1x update is also helpful.

    I'm working on a fix.
     
    PixelEnvision likes this.