UnityEngine.Texture2D.SetPixels32 C# (CSharp) Method

SetPixels32() private method

private SetPixels32 ( Color32 colors ) : void
colors Color32
return void
        public void SetPixels32(Color32[] colors)
        {
            int miplevel = 0;
            this.SetPixels32(colors, miplevel);
        }

Same methods

Texture2D::SetPixels32 ( Color32 colors, [ miplevel ) : void
Texture2D::SetPixels32 ( int x, int y, int blockWidth, int blockHeight, Color32 colors ) : void
Texture2D::SetPixels32 ( int x, int y, int blockWidth, int blockHeight, Color32 colors, [ miplevel ) : void

Usage Example

コード例 #1
0
        public void SetPixels(Color[] colors)
        {
            // Fix: updside down.
            var ucs = new UnityEngine.Color32[colors.Length];

            for (int i = 0; i < ucs.Length; i++)
            {
                ucs[i] = colors[i].ToUnityColor();
            }

            texture.SetPixels32(ucs);
        }
All Usage Examples Of UnityEngine.Texture2D::SetPixels32