Skip to main content

static TextureUtilities

public static class TextureUtilities{}

A static class containing useful functions for Texture Processing that the EZRecolor Baker utilizes.

Static Properties​

There are no Static Properties available or exposed for this class

Enums​

NameDescription
PackingResizeIfNotSameResolutionRescale mode if the textures to pack together are different scales.
RotationPossible rotation values when rotating a texture.

Static Methods​

MethodReturn TypeDescription
ChannelPackColorsColor[]Channel Pack 4 arrays of floats of the same length into a single array of RGBA colors. Used to make Channel Packed Textures.
MakeChannelPackedTextureTexture2DChannel Pack 4 channels taken from up to 4 different textures (1 channel each).
ResizeTexture2DA simple resize algorythm to scale up or down a Texture2D.
RotateTexture2DRotates a texture by angles of 90 degrees.