Leaving money to your kids isn't a bad inclination or anything but I don't see why it's the be-all end-all. Maybe my parents will leave me some money when they pass, or maybe not, I'm certainly not expecting or planning on anything. I hope they spend what they can to enjoy their life while they're alive.
Not to mention, you cannot predict the future and you might lose your wealth outside your control.
wealth is only able to grow if the state and society itself is stable, otherwise you might have worked for naught, and lose everything in the process thanks to war/climate change/economic depression etc anyways. (my SO's family lost all their wealth in world war two for example, and i am talking generational wealth here).
Raising your kids to be able to stand on their own and deal with the harshness of the world is far more important in my opinion.