Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: hrlarsen on June 23, 2014, 06:46:14 AM

Title: Possible AlphaTween bug?
Post by: hrlarsen on June 23, 2014, 06:46:14 AM
Hi

I possibly found a bug with the TweenAlpha script, but it also might be intentional. Anyway if I have an empty gameobject with x number of children under it, and the empty gameobject has an AlphaTween component on it, it will only fade the first object in the hierachy. It works as expected if I add a widget to the empty GameObject, but one would think it should work having a widget or not on the parent object.

- GameObject with AlphaTween
    - sprite <- (Only this will be affected by AlphaTween)
    - sprite
    - ...

Title: Re: Possible AlphaTween bug?
Post by: ArenMook on June 24, 2014, 03:11:56 AM
TweenAlpha is meant to tween widgets, not game objects. Game objects have no alpha. The way it searches for one on its children is kept only for backwards compatibility.