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

Pages: [1]
1
NGUI 3 Support / Re: Fullscreen image distortion
« on: January 20, 2016, 01:28:51 PM »
I can confirm the power of 2 being a complication. I edited the image to be 1024x1024 and it does not distort any longer.

The other solution I've found is related to the mip mapping. When turned off this is no longer an issue.

2
NGUI 3 Support / Fullscreen image distortion
« on: January 20, 2016, 10:14:26 AM »
Unity 5.2.1
NGUI 3.9.4

I am having issues with a full screen background image becoming distorted when I push my build to either the ios simulator or an actual iPad device. The image is 800x600. I've tried a flexible screen and constrained on mobile, both have the same issue. Image attached. The top of the screen gets stretched as opposed to flexing the whole image. It works fine in the Unity window. I get a similar issue with a UI Table and a set of sprites.

Any help or thoughts would be appreciated.

3
NGUI 3 Support / World panning ondrag + object onclick
« on: November 23, 2015, 07:47:16 PM »
I am working on a game and I have two cameras. The first is the standard UI camera created for all NGUI/UI/HUD objects. The second camera is the standard "Main Camera" which displays everything else including the world. In the world I have objects that you can click on to select or activate. I have added a second UICamera script to allow me to use OnClick for these in world objects.

The problem comes when trying to add the ability to drag or touch the screen to pan around the world. I add a collider across the UI camera, so that anywhere I touch will trigger a Drag event. This then prevents the Click event from reaching the objects in the world because this collider consumes all the events. Is there a way to have this collider only capture drag events and let the Click pass through?

If not what is the better way to go about this? I would like to use NGUI for all the touch events if possible.

Pages: [1]