I’ve tried temporarily removing the grass on collision on runtime then re-planting the grass when the object is removed, but it lags a lot!
Anyone got any ideas/solutions to solve this?
Adding removing grass on a small spot should not lag, i do that myself. I cant see the screen but i assume its only a small item you drop?
Make sure when you remove the grass that you only update that small spot and not the whole detailMap, the details array should be as small as possible, whit a small item it should be possible to only have it as detail[1,1] hopefully.
This is for changing the smallest part, if you want a bigger change you can change the two “1” to a bigger number.
This code assumes you have your grass on the first layer, if you only have one grass type you are ok.
Sorry to slightly hijack this thread, but I got a small question.
I’ve tested the code above for placing grass with many different alterations and altough I don’t get any error messages, the grass or other details don’t show up at all. Of course the integer value is 1 for my purposes and the code is tested with and without Flush(). Do you know a reason for grass not being rendered?