文档

Unity Engine

Unity Engine

ARGB32

Color with alpha texture format, 8-bits per channel.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Field
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
ARGB32 = 5

Remarks

Each of RGBA color channels is stored as an 8-bit value in [0..1] range. In memory, the channel data is ordered this way: A, R, G, B bytes one after another.
Note that TextureFormat.RGBA32 format might be slightly more efficient as the data layout in memory more closely matches what the graphics APIs expect.
Additional Resources: Texture2D, texture assets.