1
NGUI 3 Support / Re: Never use Instantiate(). Use NGUITools.AddChild.
« on: January 23, 2015, 04:30:05 AM »
Hello is there a reason this line doesn't change the layer and its children tree recursively?
go.layer = parent.layer;
I will change it to
but couldn't be sure why you have left it out
go.layer = parent.layer;
I will change it to
- foreach (Transform trans in go.GetComponentsInChildren<Transform>(true))
- {
- //go.layer = parent.layer;
- trans.gameObject.layer = parent.layer;
- }
but couldn't be sure why you have left it out

.