how to find whether the gameobject in terrain is on grass or sand layer?
Do a coordinate transformation between world space and terrain to find the pixel coordinates in your splatmap, then get the colour there and evaluate that.
how to find whether the gameobject in terrain is on grass or sand layer?
Do a coordinate transformation between world space and terrain to find the pixel coordinates in your splatmap, then get the colour there and evaluate that.