Directional light cast shadow mobile

Hi, I am making an android game. I have two buttons in widget bp settings, one for shadows on and another for shadows off. I have stationary directional light in my scene. I don’t know how to turn on/off shadows at runtime using buttons. Sry for bad English :frowning: . I hope made my question clear. Please someone reply. Thanks.