Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: pretender on March 19, 2014, 10:16:13 AM

Title: Replacement for SetAlphaRecursive
Post by: pretender on March 19, 2014, 10:16:13 AM
Hi! I have this code which doesn't work any more in NGUI3+
I picked it up in here in forums and adopted it. Now I updated to NGUI3 and it doesn't work.

Here is the line of code that I don't know how to fix:

  1. p.SetAlphaRecursive(Mathf.Clamp01(p.alpha + RealTime.deltaTime * 2.5f), false);

I guess that i would need to use p.alpha directly
Title: Re: Replacement for SetAlphaRecursive
Post by: ArenMook on March 20, 2014, 01:49:35 AM
Alpha is cumulative.

panel.alpha = value is all it takes. No need to do anything recursively.