Destroyable barrier

I would like to make a completely destroyable barrier, so do i need a code or can i do it with anny of the functions built in in Unity like the cloth one, of a code is needed can some one provide me IDEAS, not the code , of how to do so.

sry for anny spelling mistakes, nacho

They’re often called breakables and they are created with animations, then just called from code, here is a tutorial on how to achieve this kind of effects (they´re using a plugin for Unity called Game Maker).

Tutorial Breakable Objects