文档

Unity Engine

Unity Engine

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.
阅读时间1 分钟最后更新于 1 个月前

Definition

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

Parameters

texture

The texture to validate.

Remarks

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