UMeshComponent specification to Skeletal/Static in children

well actually i tried writing that code but its working fine in blueprints here… did you try creating new child BP?