/// <summary>
/// Returns the children of the GameObject
/// </summary>
/// <param name="includeChildrenRecursively">Whether all children in the hierarchy should be added recursively</param>
/// <returns>The children of the GameObject</returns>
/// <remarks>This will take a dependency on the children</remarks>
public GameObject[] GetChildren(bool includeChildrenRecursively = false)
{
return GetChildren(_State.AuthoringObject, includeChildrenRecursively);
}
This is a function in Baker<...>. What does "This will take a dependency on the children" mean? Is that a Job system thing? If yes, when is that dependency completed? Can I combine it with other dependencies?
What is a correct use case for this - is it all right to call GetEntity(childen[index]), with intent to call AddComponent?
(instead of having to have a different type of Baker on all the child objects, which talks to the parent?)