Say for instance I have a completely healthy ship. Next thing that happens is the ship gets attacked by pirates.
How would one code something like the holes punched into a ship after being struck by a cannon ball? All I have is a solid model of the ship and it does not have any damaged variants. is there a way to code holes without changing the ships model to one with holes?
Unity exposes the mesh class in the API so that you can make whatever arbitrary changes that you want.
Here is the docs page:
It focuses on creating geometry from scratch, but you can also use the same classes to modify existing geometry.
There’s also a detailed article here: