Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

TerrainLayerUtility.ValidateMaskMapTextureUI

Declaration

public static void ValidateMaskMapTextureUI(Texture2D texture);

Parameters

texture The texture to validate.

Description

Checks whether the texture is a valid TerrainLayer mask map texture. If it detects that the texture is not valid, it displays a warning message that identifies the issue.

A valid mask map texture must have Repeat wrap mode and mipmaps enabled.