UnityEngine.Cubemap.SetPixel C# (CSharp) Method

SetPixel() public method

public SetPixel ( CubemapFace face, int x, int y, Color color ) : void
face CubemapFace
x int
y int
color Color
return void
        public void SetPixel(CubemapFace face, int x, int y, Color color)
        {
            INTERNAL_CALL_SetPixel(this, face, x, y, ref color);
        }

Usage Example

コード例 #1
0
 void createPlaceHolderCube()
 {
     if( PlaceHolderCube == null ) {
         PlaceHolderCube = new Cubemap(16,TextureFormat.ARGB32,true);
         for(int face = 0; face < 6; face++) {
             for(int x = 0; x < 16; x++) {
                 for(int y = 0; y < 16; y++) {
                     PlaceHolderCube.SetPixel((CubemapFace)face, x, y, Color.black);
                 }
             }
         }
         PlaceHolderCube.Apply(true);
     }
 }
All Usage Examples Of UnityEngine.Cubemap::SetPixel