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

Pages: [1]
1
NGUI 3 Support / Re: Nicki's Depth Management Tool
« on: July 22, 2014, 10:37:21 PM »
Hello everyone,

Sorry to bring this up, I've write an NGUIDepth extension that support drag and drop to adjusting the depth, very intuitive and easy, have a look and tell me if there are something you want me to improve.

  1. https://www.assetstore.unity3d.com/en/#!/content/19845

thanks a lot.

2
NGUI 3 Documentation / Re: UIRoot
« on: January 07, 2014, 03:36:52 AM »
I think UIRoot should not scale the whole thing down by default, It's very weird to have a root GameObject at some 0.0000xx scale. I belive most of other people would like it better to see UIRoot at scale (1,1,1) - It's what we expect for the first time using a GUI library (and 2D Toolkit is using that). Scaling everything down 0.000xxx will make people confuse as they don't understand what is that value about (and they can't change it). Keeping Orthorgraphic size at 1 is not needed, just set it to Screen.height / 2 ... thanks god I found this post after several years using NGUI, I thought that scale can not be change and I even wrote a script / modify UIRoot's script to prevent the changes. I didn't know that NGUI can live without UIRoot as I belive UIRoot should be the root of all UI, and no UI could survive without UIRoot.

thanks, I got to remove all the UIRoot component now  ;D

3
NGUI 3 Support / Re: A small bug ?
« on: February 27, 2013, 10:13:42 PM »
From what I see using TweenPosition.Begin still does not sort out my problem, the tween object still don't move.

I think although it does sound strange, it should work. Playing reverse the first time.

The reason I can not swap from / to for that object because I use the direction to track if the object is tweening out of view or into view and there are quite a few object tweening in and out at the same time. If I do reverse the from / to just to play in reverse I will never know which object is tweening out and which is tweening in as they are all going on Forward direction.

Tell me if it's reasonable doing so or if I'm missing something simple.

thanks.

4
NGUI 3 Support / A small bug ?
« on: February 27, 2013, 10:52:58 AM »
I'm not sure if it's a bug or it's my fault but, anyway

I tried to add a TweenPosition onto a normal GameObject, and set from A to B. Now for this first time animation I want to start the animation in Reverse in stead of Forward (seems akward, but yes, I really need this: running reverse the first time), so I call Play(false) but the GameObject didn't move.

The first thing I tried is moving the GameObject else where before calling Play(false) : nothing happens.

After a while digging into the code, I found that the variable mFactor is set to 0 at the start, meaning that when I call Play(false) it will calculate mFactor += amountPerDelta * delta; which is resulted in a negative value ( as amountPerDelta is negative now ).

So that's why the tween being skip : invalid mFactor value.

The easiest fix I can think of is setting mFactor to -1 at the start then init the correct value when the tween actual starts (haven't tested). Is that right or I'm just making a terrible mistake ? Please advise.

p/s : I made a temporary fix by injecting 1 to mFactor at the start for this special case using Reflection, leaving NGUI library untouched, and seems that it's working fine.

Pages: [1]