ドキュメント

Unity Engine

Unity Engine

UpdateDirtyRegion(int, int, int, int, bool)

Triggers an update to integrate modifications done to the heightmap outside of unity.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.TerrainModule
注意
Deprecated. Please use DirtyHeightmapRegion instead.
public void UpdateDirtyRegion(int x, int y, int width, int height, bool syncHeightmapTextureImmediately)

Parameters

Start X position of the dirty heightmap region.

Start Y position of the dirty heightmap region.

width

Width of the dirty heightmap region.

height

Width of the dirty heightmap region.

syncHeightmapTextureImmediately

Update immediately, instead of deferring the update.

Remarks

Invoke this function whenever custom Terrain heightmap paint tools modify the heightmap, to let Unity integrate the changes such as physics and collision updates.