Method group is Obsolete

Terrain.castShadows

Switch to Manual
Obsolete public bool castShadows ;

Description

Должен ли ландшафт отбрасывать тени?

castShadows is obsolete. Instead you should use shadowCastingMode which allows setting all shadow casting modes. Setting castShadows to true sets shadowCastingMode to ShadowCastingMode.TwoSided. Setting it to false sets shadowCastingMode to ShadowCastingMode.Off.