is possible to remove a painted grass via script?
i’ve painted some grass in terrain,and i want when my player collide whit it,remove grass where i’ve collided.
will require the use of undocumented functions as that part of the terrain system is not exposed and could change at any time.
basically you have to alter the grass paint map to tell it to no longer paint grass in that area
Yes, it is possible and actually fairly easy. I don’t recommend doing it continually, however, as it is somewhat performance-expensive.
The API calls you need are terrain.GetDetailLayer() and terrain.SetDetailLayer().