public Component[] GetComponentsInChildren(Type t, bool includeInactive = false);
Parameters
includeInactive Should inactive GameObjects be included in the found set?
public Component[] GetComponentsInChildren(Type t, bool includeInactive = false);
Parameters
includeInactive Should inactive GameObjects be included in the found set?
能说下你的使用场景是什么吗?这个参数是否常用呢?
这个需求肯定很常用到 ,比如 在父节点的组件脚本 里 对所有子节点的组件赋值或者有调用,总是在某些情况下子节点默认是隐藏的
能说具体一点吗?
你说的需求,现在这个接口 GetComponentsInChildren 不就已经能满足吗?