Version: 2022.2
LanguageEnglish
  • C#

TerrainData.holesTexture

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

public Texture holesTexture;

Description

Returns the Terrain holes Texture.

An uncompressed Terrain holes Texture is a RenderTexture in the Editor and at runtime. A compressed Terrain holes Texture is a Texture2D at runtime only. You might use an uncompressed Terrain holes Texture as a render target for the custom painting of Terrain holes data. Use the TerrainData.enableHolesTextureCompression property to enable or disable Terrain holes Texture compression at runtime.