Search Unity

Terrain.Flush, what does it do?

Discussion in 'World Building' started by StaggartCreations, Mar 7, 2021.

  1. StaggartCreations

    StaggartCreations

    Joined:
    Feb 18, 2015
    Posts:
    2,260
    Documentation reads: Flushes any change done in the terrain so it takes effect.

    What sort of changes does this relate to? Modifying the height/detail array? Or also the splatmap/heightmap render textures?

    Seems like this isn't particularly necessary for any kind of change. Does anyone know what the benefit is of calling this function?
     
    chadfranklin47 likes this.
  2. chadfranklin47

    chadfranklin47

    Joined:
    Aug 11, 2015
    Posts:
    226
    Hey, I'm curious if you've found any situation where it's necessary to use terrain.Flush()