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

Pages: [1] 2
1
NGUI 3 Support / Re: Animating panel alpha through Unity
« on: February 13, 2014, 10:18:56 PM »
agree with Acheron Studio
AnimatedAlpha seems to plain can a bit improve
And don't know why the old version is work even just animate MAlpha directly. Maybe SetDirty that time is called incorrectly so it work? And now fixed the SetDirty so it not work?

2
ic thz  :)

3
Early 3.0.x version I still can use Unity's Animation Editor(UAE) to animate the UIRect.alpha.
But latest version of 3.0.x and 3.4.x version the UIRect.alpha no longer can update by UAE.
It show it work in UAE. But when you play it in the playing mode. the alpha cannot update anymore.
I found out because UAE only set directly to the mAlpha attribute not through the property setter.
So the SetDirty cannot be called. I don't know why 3.0.x early version can work.
Can help us to fix this? Still are big feature and most easy way to handle window transaction by UAE. rather then use NGUITweenXXX

4
NGUI 3 Support / Re: How can temp. disable input ?
« on: January 19, 2014, 04:13:24 AM »
What I mean gameObject is not UIButton, is because the Script itself is not attached to the gameObject with UIButton.
Ya I know should send UIButton's object. So why I try to get it from UICamera.currentTouch. and tried with UICamera.currentTouch.current and UICamera.currentTouch.pressed. But both of them will throw exception if I passed in to the Notify

5
NGUI 3 Support / Re: How can temp. disable input ?
« on: January 18, 2014, 05:21:33 AM »
Sure, the gameObject is not the button itself.
Because the process is triggered by Touch Events in a global singleton manager. not by the UIButton and any NGUI event.

The case is when I detect two touches arrived. I want to disable the NGUI to receive any input and reset all it's Components to default status.
I know UICamera.enable = false can disable the NGUI to receive any input already. But how to reset those Components may already changed status. For example Button. When press on a button wihtout release, The button will change the color. When I set UICamera.enable = false this time. It will not receive any un-press event. So the color will still remain. You mentioned to use UICamera.Notify("OnPress", false);
But the problem is UICamera.Notify need a GameObject as the first parameter. But how can I know which GameObject I should send.

You see me already tested, UICamera.selectedObject, UICamera.currentTouch.current and UICamera.currentTouch.pressed. Not one of this work.

6
NGUI 3 Support / Re: center child bug in scroll view
« on: January 18, 2014, 05:09:49 AM »
just upgraded to 3.0.9f1
the issue already fixed.
But still have 2 issues when center of child enabled.
1) You drag the scroll bar to the edge. The scroll view will move the first item to the edge. instead should move the first item to the center.
2) If I removed Checkbox's UIToggledComponents. That mean center of child should enabled by default. when the game started, the scroll view still will move the first item to the edge. instead should the first item in the center.

7
NGUI 3 Support / Re: center child bug in scroll view
« on: January 16, 2014, 07:27:48 PM »
:) waiting

8
NGUI 3 Support / Re: How can temp. disable input ?
« on: January 16, 2014, 07:26:53 PM »
:) waiting

9
NGUI 3 Support / center child bug in scroll view
« on: January 15, 2014, 10:55:41 PM »
open
Quote
Example 7 - Scroll View (Panel)
enable "Center on items"
scroll to first item.
then press left empty space (click to background not item) inside the scroll view.
suppose should not happen anything. but the scroll view will move the first item to the left edge.

10
NGUI 3 Support / Re: How can temp. disable input ?
« on: January 15, 2014, 10:51:46 PM »
I called
  1. UICamera.Notify(gameObject, "OnPress", false);
before disable UICamera
But the highlighted button still highlight. anything wrong?

11
NGUI 3 Support / Re: How can temp. disable input ?
« on: January 14, 2014, 12:25:44 AM »
I tried selectedObject, currentTouch.current and currentTouch.pressed none of them work.
And UICamera.currentTouch is null. By disable the UICamera the two points gesture is working now. But I cannot reset the selectedObject to normal status when the gesture is active.

The codes I tried :
  1. UICamera.Notify(UICamera.selectedObject, "OnPress", false);
This will crash at UIButtonColor.cs and because UICamera.currentTouch is null

  1. UICamera.Notify(UICamera.currentTouch.current, "OnPress", false);
This will crash because UICamera.currentTouch is null

  1. UICamera.Notify(UICamera.currentTouch.pressed, "OnPress", false);
This will crash because UICamera.currentTouch is null

12
NGUI 3 Support / Re: How can temp. disable input ?
« on: January 13, 2014, 09:35:04 PM »
Thanks  ;D,

But Notify's signature is
Quote
static public void Notify (GameObject go, string funcName, object obj)
seems I need the GameObject. But how I know which game object I should send?

13
NGUI 3 Support / How can temp. disable input ?
« on: January 13, 2014, 07:20:23 AM »
Hi, I want to create a touch gesture that only response if more then two touch point.
How can I temp. disable the user input to NGUI if more then two touch point started.
So the gesture will not conflict with NGUI.

14
thanks ArenMook,
I also find out is QualitySettings changed to Fastest.
But I never touch it. Any idea why it will changed?

15
seems is my project problem ~
I already deleted everything just remain NGUI still blurry.
if I setup a new project it working fine without blur.
Still try to figure out what's the issue

Pages: [1] 2