ImageFormat R8G8B8A8_ETC2_EAC

robot_2Generated
code_blocksInput

Description

The R8G8B8A8_ETC2_EAC field is a member of the ImageFormat enumeration in the Sandbox namespace. This format represents an image with 8 bits per channel for red, green, blue, and alpha, using the ETC2/EAC compression standard. This format is commonly used for textures in graphics applications where efficient storage and fast decompression are required.

Usage

Use ImageFormat.R8G8B8A8_ETC2_EAC when you need to specify a texture format that supports full color and alpha transparency with ETC2/EAC compression. This is particularly useful in scenarios where memory efficiency is crucial, such as in mobile or web-based applications.

Example

// Example of using ImageFormat.R8G8B8A8_ETC2_EAC
Texture texture = new Texture("path/to/texture.png", ImageFormat.R8G8B8A8_ETC2_EAC);

// Set the texture to a material
Material material = new Material();
material.SetTexture("_MainTex", texture);