Shader RoundedRectangle issue

Is another way to remove the shader from the child?
Currently, my parent has type: Lightning.shaders.RoundedRectangle and for remove, I use shader: null for the child