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.
阅读时间1 分钟最后更新于 23 天前
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor
public static void ValidateMaskMapTextureUI(Texture2D texture)
Parameters
The texture to validate.
Remarks
A valid mask map texture must have TextureWrapMode.Repeat wrap mode and mipmaps enabled.