Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Silverleaf1

Pages: [1]
1
If they were actively changing code for Retina, then they should be testing those changes on Retina to see if everything still works.
Sloppy engineering practices on Unity's part.  :-\  Yeah, they really need to get Screen.width functioning properly again for OSX. How annoying.

2
So, I dug into and debugged the SpriteSelector.cs code and I have found that Screen.Width is reporting an incorrect Width value for the size of the window.
This is not reporting the with of the actual sprite selector window screen size.

I found a function that works better, and here's the fix: (I replaced Screen.width with EditorGUIUtility.currentViewWidth and this worked like a charm!)
HOWEVER: I thought Screen.width is 'supposed' to return the width of the current view if it's currently used inside an active GUILayout, so your code 'should' have worked? But it doesn't. Anyway, my fix makes SpriteSelector now function correctly.
Aaron if you have an even more robust fix than mine, please reply and I'll use that instead, otherwise maybe you can just put in this fix and release it as a bug fix?

Thanks!

         int screenWidth = (int)EditorGUIUtility.currentViewWidth; //Screen.width;
         int columns = Mathf.FloorToInt(screenWidth / padded);
         if (columns < 1) columns = 1;

3
I have installed the latest version of NGUI as of today (deleted and reimported just to be sure nothing in the install was messed up).
When I click on Sprite on a UISprite widget to go select a sprite for the Atlas, the SpriteSelector window is not auto resizing correctly for me so many of the sprites are scrolled off the right side of the window and not showing and the scrollbars are not working to show the extra content.

I'm currently looking at the code further to diagnose how to fix it and get the window to correctly show all the sprites as this is making it impossible to select some sprites from the atlas for use.

Anyone else getting this?

I'm running Unity 5.4.03 on a Macbook Pro, btw.  Dunno if Mac is having some different behavior for default skin or what?

Thanks.

Pages: [1]