Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ValidateMaskMapTextureUI(Texture2D)

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.
Read time 1 minuteLast updated 12 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor
public static void ValidateMaskMapTextureUI(Texture2D texture)

Parameters

texture

The texture to validate.

Remarks

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