ValidateDiffuseTextureUI(Texture2D)
Checks whether the texture is a valid TerrainLayer diffuse texture. If it detects that the texture is not valid, it displays a warning message that identifies the issue.
Read time 1 minuteLast updated 7 days ago
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor
public static void ValidateDiffuseTextureUI(Texture2D texture)
Parameters
The texture to validate.
Remarks
A valid diffuse texture must have TextureWrapMode.Repeat wrap mode and mipmaps enabled.