castShadows
Should terrain cast shadows?.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.TerrainModule
public bool castShadows { get; set; }
Remarks
Terrain.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.