Adding grass to terrain through scripting?

Hey. I need to add grass to a terrain at the point the player steps on it. Is this possible? Could you provide me with a basic C# script that does that? Or at least give me some info? Thanks in advance! :slight_smile:

If you set up a collider with the ground and player and then use the collider location function (forgot the syntax/name offhand) it will let you figure out where they’re colliding, from there, it’s just about texturing and instantiating, probably using some sort of grid mesh.

It’s the grid mesh I am interested in. Any help? Thanks in advance! :slight_smile:

I haven’t programmed any meshes myself, so I don’t want to really lead you astray, here’s the docs on the meshes though.

And this is probably going to be useful as well:

Any more help on this? I haven’t really managed to do anything yet…