UpdateDirtyRegion(int, int, int, int, bool)
Triggers an update to integrate modifications done to the heightmap outside of unity.
읽는 시간 1분최근 업데이트: 한 달 전
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.TerrainModule
public void UpdateDirtyRegion(int x, int y, int width, int height, bool syncHeightmapTextureImmediately)
Parameters
Remarks
This function is obsolete. Use either TerrainData.CopyActiveRenderTextureToHeightmap or TerrainData.DirtyHeightmapRegion instead.
Invoke this function whenever custom Terrain heightmap paint tools modify the heightmap, to let Unity integrate the changes such as physics and collision updates.