ドキュメント

Unity Engine

Unity Engine

Alpha8

Alpha-only texture format, 8 bit integer.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Field
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
Alpha8 = 1

Remarks

This format only stores the alpha channel and doesn't hold any color data. It can be used by custom shaders for computing alpha independently of the other channels. Set the texture data in the same way as with other textures, for example using Texture2D.SetPixels, except only the alpha component from Color is used.
Additional Resources: Texture2D, texture assets.