기술 자료

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분최근 업데이트: 한 달 전

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.