I'm having an issue:
If I dynamically instantiate a prefab as a child of a UIGrid
Then change the UIPanel's alpha
The dynamically instantiated children do not fade with the UIPanel and the rest of the widgets
When I have the prefab as a child of the UIGrid in the Editor, it works fine.
It also doesn't work if I drag the prefab manually and make it a child of the UIGrid at runtime.
I noticed that NData has the same problem with their NguiItemSourceBinding component demo (ItemsList). None of the UIPanels in the hierarchy of the UITable's alphas will make the dynamically added children fade.
A quick way to duplicate it manually:
NGUI > Create 2D UI
NGUI > Create Panel
NGUI > Create Grid
Drag a prefab from the NGUI > Examples > Atlases > Wooden folder onto the grid.
At runtime, change the Alpha of the panel, and it will fade.
Manually drag another of the same prefab and put it on the Grid
Adjust the alpha again, and the new prefab does not fade
I've also hit execute on the Grid at runtime, and tried it with a UITable as well.
If anyone has any suggestions on what I am doing wrong, please let me know. If there is something I need to do to the prefab after instantiating it in code, that would be fine for a solution since I am instantiating them from code in my original example and experiencing the same issue as manually adding them in the editor at runtime.