Method SetDirty
SetDirty(DirtyFlags)
Mark this data as dirty (modified) for asset file saving as well as performing related actions after modification. For example, SetDirty(DirtyFlags.Geometry) -> terrain object will also regenerate surface meshes.
public void SetDirty(GTerrainData.DirtyFlags flag)
Parameters
flagGTerrainData.DirtyFlagsIndicate what's changed, use the bitwise OR if many things have changed.