Version: 2018.4
LanguageEnglish
  • C#

TerrainData.UpdateDirtyRegion(int,int,int,int)

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Parameters

x Start X position of the dirty heightmap region.
y Start Y position of the dirty heightmap region.
width Width of the the dirty heightmap region.
height Width of the the dirty heightmap region.

Description

Triggers an update to integrate modifications done to the heightmap outside of unity.

Invoke this whenever custom custom terrain heightmap paint tools modify the heightmap to let Unity integrate the changes (update collision, physics, etc ).