Version: 2021.3
언어: 한국어

TerrainData.DirtyTextureRegion

매뉴얼로 전환
public void DirtyTextureRegion (string textureName, RectInt region, bool allowDelayedCPUSync);

파라미터

textureName The name of the Terrain texture.
region The rectangular region to mark as dirty.
allowDelayedCPUSync Specifies whether to allow delayed CPU synchronization of the texture.

설명

Marks the specified part of the Terrain texture as dirty.

Use this function only after you manually change the GPU part of the Terrain texture, such as by using Graphics.CopyTexture. Set the allowDelayedCPUSync parameter to true if you want Unity to perform immediate synchronization of the CPU part. If you set it to false, Unity queues the reading back of the dirty region until the next call to SyncTexture.

If the current active RenderTexture contains your changes, and you want to copy a part of it into the Terrain texture, use CopyActiveRenderTextureToTexture instead.