Version: 2018.3 (switch to 2019.1)
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

xStart X position of the dirty heightmap region.
yStart Y position of the dirty heightmap region.
widthWidth of the the dirty heightmap region.
heightWidth 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 ).

Did you find this page useful? Please give it a rating: