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

Pages: [1]
1
NGUI 3 Support / Scrollview questions
« on: October 01, 2015, 07:45:28 AM »
I have two question regarding the Scrollview.

How do I change the "inner view" of the scroll view. When adding something to the scrollview that is taller than the scrollview it automatically rezises the "inner view" so that it can scroll exactly to the bottom of that object. But how do I set it myself. Let's say the objects inside the scrollview are 300 pixels tall but I want the inner scrollview, for whatever reason, to be 1000 pixels always. How do I do that.

Also, when I make a scrollview, it seems that it has already scrollet 1 or 2 pixels down, how do I stop it from doing that?

Any help would be much appreciated :)

2
NGUI 3 Support / Re: UI Root intercepting events
« on: October 01, 2015, 05:49:58 AM »
This seemed to fix the issue. I would never have realised this myself... Thanks alot :) I was using Collider and had it set to 2D.

3
NGUI 3 Support / UI Root intercepting events
« on: October 01, 2015, 04:50:36 AM »
Hi, I'm trying to make a very basic UI

I have made the UI Root by pressing the NGUI tab -> create -> 2D UI

Then I have made a panel (panel 1), which has another panel inside (panel 2) which has a scrollview.
And in panel 2 I have a a widget with a BoxCollider and a UI Drag Scroll View script.

But when I try to drag it nothing happens, and the OnDrag event is never called in the UI Drag Scroll View script

The UI Root's layer is set to default and the panel has the layer UI.

The Camera created with the UI Root has the event mask set to UI.

But it seems when I turn on debug on the Camera, that I'm still getting OnHover event on the UI Root, even though it's layer is default and the Event Mask is set to UI.

Raycasts Hit Triggers is set in both Physics and Physics 2D settings

Am I doing something wrong? And if so could you point me in the way of a fix? Any help would be much appreciated.

Pages: [1]