I don't understand what the two have to do with each other?
I wanted to deactivate the child i Instantiate. But i did this and its working:
NGUITools.AddChild(parentObject, prefab);
parentItem.SetActiveRecursively(false);
But i got another strange problem. The object I'm Instantiating is a child in a table for a scrollbar.
When i activate the menu using SetActiveRecursively(true) all the items(the Instantiated child's) is sorted.
But if i use SetActiveRecursively(true) and then SetActiveRecursively(false) and then Instantiating the items and do
SetActiveRecursively(true) they isn't getting sorted?
Trying to explain better:If i Instantiate the child before using the menu(with the scrollbar) and
activate the menu every child is sorted (like i want).
But if i activate and deactivate the menu a couple of times
before Instantiating the child(s),
the child(s) doesn't get sorted?.