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 - BrightBit

Pages: [1] 2
1
NGUI 3 Support / Re: UIScrollView is not pixel perfect!
« on: November 06, 2014, 02:45:56 AM »
Thank you! :) It's still weird that this resolution (1063) doesn't affect the other widgets but it really seems to be the problem and I can adjust the size of Unity's preview window so I will get a correct preview and don't have to build a standalone version each time I need to check my layout. So it's fixed for me!

Thank you.

Greetings
BrightBit

2
NGUI 3 Support / Re: UIScrollView is not pixel perfect!
« on: November 05, 2014, 08:24:10 AM »
I did some more tests and finally realised that if I am building a standalone version of my project the issues are gone BUT it doesn't seem to be related to the size of screen. The following two images illustrate what I mean:

Unity Editor Game Preview [Resolution 1063x598]:



Fullscreen Standalone [Resolution 640x480]:



Since it might be difficult to see the difference:



BTW: Why should the UI be shrunk down? Even if an item doesn't fit onto the screen I want it to be rendered correctly, i.e. pixel perfect! Apart from that: Every other element in my GUI is okay, just the items in the ScrollView are wrong!

3
The stacktrace is part of the exception message under the corresponding entry in your console. I've drawn a red rectangle around the part I'm interested in:


4
I did see your post about your fix. Is your EnableNextWindow method only called from an OnClick event of a button or is there another place where you are calling this method? Can you post your stacktrace, i.e. the complete error message with all function calls.

5
Can you post the code for your OnClick method?

6
NGUI 3 Support / Re: SlicedSprite border offset and Direct3D
« on: November 04, 2014, 08:17:20 AM »
Hi broken,

as far as I know it seems to be normal behaviour. I'm currently creating a pixel perfect retro GUI where I can see and "feel" every pixel. At one point I had to use MeshColliders for some buttons and I positioned them without offsets. It turned out that the Hover animation for my buttons started earlier or later depending on which site of the button the mouse entered first.
I then added the offsets and everything works fine now.

I still would like to know the reasoning behind those offsets.


Cheers
BrightBit

7
  1. Debug.Log(thisCalledMe.gameObject.name);

This line seems wrong! The variable thisCalledMe already is a GameObject, isn't it? So it shouldn't even be possible to call thisCalledMe.gameObject!

8
NGUI 3 Support / UIScrollView is not pixel perfect!
« on: November 04, 2014, 07:16:39 AM »
I've changed NGUI's Example Scene "ScrollView(Panel)" to use a Sliced Sprite for the items instead of the simple ones. The Filter Mode of the corresponding atlas texture is set to Point. The following animation illustrates that those items won't be rendered pixel perfect:



Please note that I have a real problem with this issue in another application. I only took the Example Scene to explain my problem for easier reproduction. The versions of my software: Unity 4.5.1f3 and NGUI v3.7.5

Does anyone know how to fix this problem?


Greetings
BrightBit

9
NGUI 3 Support / Re: Centered Grids and Tables
« on: June 24, 2014, 06:08:53 AM »
A bit unintuitive but it worked. Thank you. :)

10
NGUI 3 Support / Centered Grids and Tables
« on: June 24, 2014, 03:37:37 AM »
Hi,

How can I center a table or a grid in the middle of a screen or in the middle of a widget? Is there a way to change the pivot of a table from "top left" to "center"?


Greetings
BrightBit

11
NGUI 3 Support / Re: Dragging doesn't work when there are children
« on: March 02, 2014, 01:59:37 AM »
Okay, you were right. That was the problem. Thank you. :)

12
NGUI 3 Support / Re: Dragging doesn't work when there are children
« on: March 01, 2014, 02:47:43 AM »
There are just 2 colliders in the gui. The items don't have collider components:


13
NGUI 3 Support / Re: Dragging doesn't work when there are children
« on: February 28, 2014, 02:45:41 AM »
Okay, I've done so but it didn't help me. Here's a video of it:

https://www.youtube.com/watch?v=tUNnAH_oAEc

14
NGUI 3 Support / [SOLVED] Dragging doesn't work when there are children
« on: February 26, 2014, 10:21:27 AM »
Hello again,

I've got a GameObject "Backpack" with two children "Label" (with UILabel, UIDragObject [target is "Backpack"] and BoxCollider) and "Slots" (with a BoxCollider that is even overlapping the Collider of "Label").
My problem is that I can't drag the "Backpack" via "Label" as long as there are children in "Slots". I made a video to illustrate that:

https://www.youtube.com/watch?v=gMqMBkNBWRg

Any idea on why this happens?


Greetings
BrightBit

Note: There's an additional component attached to the GameObject "Slots" but it has no impact on this problem. I already tested that by removing this additional component.

15
Thank you very much indeed! The example you mentioned was very helpful. :)

Pages: [1] 2