TextureExtensions.SetColor

Extension Method in TextureExtensions

Declaration

public static void SetColor(this Texture2D texture, Color32 color)

Description

Sets every pixel in the texture to the specified color.

Parameters

textureThe texture to set the color of.
colorThe color to set the texture to.