How to make procedural animation of tree with Unity?

How to make procedural animation of tree with Unity like this:

similar to,

about creating procedural meshes,

to animate leaves/branches, could use shaders (by using mesh vertex colors to indication how strongly it moves)
search for: waving grass shaders