GetAllChilds() публичный статический Метод

public static GetAllChilds ( Part tgtPart, bool addSelf = false ) : List
tgtPart Part
addSelf bool
Результат List
Пример #1
0
        public static void SetChildTrfParent(Part sourcePart, Transform parent)
        {
            List <Part> pcs = KAS_Shared.GetAllChilds(sourcePart);

            foreach (Part pc in pcs)
            {
                pc.transform.parent = parent;
            }
        }