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

Pages: 1 2 [3] 4 5 6
31
NGUI 3 Support / Re: Panel and TweenAlpha bug
« on: February 14, 2014, 05:44:53 AM »
I guess 3.5.0 is only available for Pro dudes now, right?

32
NGUI 3 Support / Panel and TweenAlpha bug
« on: February 13, 2014, 12:12:12 PM »
Hi!

I found a possible bug regarding panels and a TweenAlpha script, here's how to reproduce it:

1.)Create a 2D UI
2.)Create a Panel ("Panel-A")
3.)Create a Panel ("Panel-B") as a child of Panel-A
4.)Create a sprite as a child of Panel-B
5.)Place a TweenAlpha script on Panel-A
   Enabled
   From:1 
   To:0
   OnFinished: TweenAlpha.ResetToBeginning()
6.) Press play
Panel alpha fades to zero, OnFinished sets the alpha to 1 on finish but the panel's content stays invisible.

Newest NGUI with Unity 4.3.0f4, dunno if this happens on other Unity versions as well.

33
NGUI 3 Support / Re: Scrollview and Scrollbar issue on startup
« on: February 06, 2014, 09:56:14 AM »
I got it fixed somehow by completely rearranging the anchoring of my widgets and the scrollview. Dunno what exactly did the job but whatevs, it works now.  :D

34
NGUI 3 Support / Re: Scrollview and Scrollbar issue on startup
« on: February 05, 2014, 04:57:28 AM »
I've read that topic, but changing the script execution order didn't fix it for me and also my panels aren't marked as static.

Thanks anyways!

35
NGUI 3 Support / [Solved]Scrollview and Scrollbar issue on startup
« on: February 04, 2014, 12:19:26 PM »
Hi!

I've encountered an issue where a ScrollView would not start in its intended position (0,0,0) but "scrolled down" by ~300 units, but only if a UIScrollBar is assigned to it.

What could be going wrong here?

Thanks in advance.

36
NGUI 3 Support / Re: Slight UV Nudging
« on: February 03, 2014, 08:48:25 AM »
This fix messes up the new anchoring system for me.

37
NGUI 3 Documentation / Re: Tweens
« on: January 30, 2014, 11:39:23 AM »
Didn't know that. Thanks!  :D

38
NGUI 3 Documentation / Re: Tweens
« on: January 29, 2014, 01:24:40 PM »
Only the "event" that the tween has been enabled ( i had a class inheriting from uitweener which relied on this )

39
NGUI 3 Documentation / Re: Tweens
« on: January 28, 2014, 12:21:35 PM »
What happened to the UITweener's OnEnabled function? Where can I find the replacement for this(if such exists) in the new version?

40
NGUI 3 Support / Re: Script Question
« on: August 23, 2013, 08:57:12 AM »
Instead of storing a GameObject, you can create a UILabel field so you don't even need to GetComponent the UILable component.
  1. public int score = 0;
  2. public UILabel Label;
  3.  
  4. private void ScoreTextShow()
  5. {
  6.      Label.text = score.ToString();
  7. }
  8.  

41
NGUI 3 Support / Re: UISlider scaling issue
« on: July 22, 2013, 05:35:39 AM »
The collider size seems to be fine now, but the foreground sprite scales over the slider now, as seen on the screenshot. :(

Edit: Setting mSize and mCenter to Vector2.zero and also calling the Init function solved my problem.
Edit2: Although I think the UISlider should be aware of the changing collider size without additional hacks on my end.

42
NGUI 3 Support / Re: UISlider scaling issue
« on: July 22, 2013, 04:43:08 AM »
Do you mean NGUITools.Addchild(go) where 'go' is the GameObject which has the UISlider script attached to it? Because it doesn't seem to update the colliders this way. Why would that update the mCol,mSize,mCenter fields in the UISlider script?

43
NGUI 3 Support / UISlider scaling issue
« on: July 19, 2013, 11:59:46 AM »
Hi!

I have a Slider built from UISlider and different types of Sprites(see attachment for picture).
The left and right side(1 and 4) is made of simple sprites. Between them, the body of the slider is a tiled sprite which is tiled from the part numbered 3. The slider foreground is also a tiled sprite from the part numbered 2. A custom-made script manages the size of the middle part depending on a certain container size so the slider won't grow bigger than that.

My issue is: If I scale the middle part of the slider in runtime, making the clickable area smaller or bigger, the UISlider script won't keep up with the changes and its collider will be out of sync.

Any ideas to fix this?

44
NGUI 3 Support / Re: 4-Finger Close Clicks Buttons
« on: October 13, 2012, 07:24:53 AM »
Try checking the touchcount in the OnClick methods and return if there are too many touches

45
NGUI 3 Support / Re: NGUI Frozen on iPhone after sleeping for a while
« on: October 10, 2012, 01:59:46 AM »
No exceptions in the XCode log?

Pages: 1 2 [3] 4 5 6