Legacy Documentation: Version 5.3
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

EditorGUIUtility.whiteTexture

public static Texture2D whiteTexture;

Description

Get a white texture.


White texture in an Editor Window.

// Load a texture, display the texture, display its alpha channel and
// show a preview of the inverted texture.