Terrain trees not casting shadow

We’ve baked the lights in our game, and the trees that I’ve painted onto the terrain will not cast a shadow. If I drag the tree prefab in from the project folder, the shadows work correctly. How can I enable shadow casting for the trees that I painted onto the terrain?

As pointed out the parent lives on a transform. Each transform has a single parent and that parent transform can have a single parent all the way up to the root of the hierarchy. A grand-parent is not a parent of your gameobjects transform it's an ancestor of it.

1 Answer

1

Make sure all the trees are marked as “static” and when your terrain is selected clic the cog icon and make sure receive shadows is on. Also you might want to check that your light source has shadows enabled. When baking, make sure to use the “all” button for the baking and if that won’t work. Try clearing the shadow map and reloading all the trees for the terrain using the reload button in the trees bar.

What if there are 101 parents?