Hey there.
So do I miss something or why does TweenAlpha not tween all of my GameObjects Children?
Here's my setup.
This is my Hierarchy:

So my "01INVENTORYMENU" is an empty GameObject.
The Objects: "ITEMGRID", "Sticker", "Textbox" are simple Sprites:

The Objects "SLOT1" to "SLOT4" are empty UI-Widgets. "Itemlabel" is a simple label:

All the Sprite- and Label-Components are disabled by default.
So, what do I want to achieve:
I have an InventoryButton, when clicked this button and other buttons are disabled for a moment, an Animation is played and other stuff happens. This other stuff includes setting the Alpha-Value of the Children of "01INVENTORYMENU" to 0.0f and enabling the Sprite/Label-Components. This is how I do it:
public GameObject pageFlipper;
public tk2dSpriteAnimator flipperAnimator;
public GameObject inventoryMenu;
private UISprite[] spriteComp;
private UILabel[] labelComp;
// Start-Function just adds the EventDelegates...
IEnumerator ShowInventory()
{
inventoryBtn.isEnabled = false;
questmenuyBtn.isEnabled = false;
diarymenuBtn.isEnabled = false;
pageFlipper.renderer.enabled = true;
if(!flipperAnimator.IsPlaying("PageForward"))
{
flipperAnimator.Play("PageForward");
flipperAnimator.AnimationCompleted = HitCompleteDelegate;
}
foreach(UISprite s in spriteComp)
{
s.alpha = 0.0f;
s.enabled = true;
}
foreach(UILabel l in labelComp)
{
l.alpha = 0.0f;
l.enabled = true;
}
foreach(Transform child in inventoryMenu.transform)
{
TweenAlpha.Begin(child.gameObject, 1.0f, 1.0f);
}
yield return new WaitForSeconds
(2
.0f
);
inventoryBtn.isEnabled = true;
questmenuyBtn.isEnabled = true;
diarymenuBtn.isEnabled = true;
}
I dragged and drop "01INVENTORYMENU" into the "inventoryMenu"-variable from the script.
And it works, but only the GameObject "ITEMGRID" is faded in. The UISprite/-Label-Components are enabled and the Alpha-Value is set to 0.0f, but they won't fade in. Just for testing I dragged "Sticker" in there, and only the child "Textbox" did fade in, but not the "Itemlabel".
Is there something wrong with my code?