Editar

Partilhar via


Texture2DExtensions.FillPixels Method

Definition

Overloads

FillPixels(Texture2D, Color)

Fills the texture with a single color.

FillPixels(Texture2D, Int32, Int32, Int32, Int32, Color)

Fills the pixels. You will need to call Apply on the texture in order for changes to take place.

FillPixels(Texture2D, Color)

Fills the texture with a single color.

public:
[System::Runtime::CompilerServices::Extension]
 static void FillPixels(UnityEngine::Texture2D ^ texture2D, UnityEngine::Color fillColor);
public static void FillPixels (this UnityEngine.Texture2D texture2D, UnityEngine.Color fillColor);
static member FillPixels : UnityEngine.Texture2D * UnityEngine.Color -> unit
<Extension()>
Public Sub FillPixels (texture2D As Texture2D, fillColor As Color)

Parameters

texture2D
UnityEngine.Texture2D

The Texture2D.

fillColor
UnityEngine.Color

Color of the fill.

Applies to

FillPixels(Texture2D, Int32, Int32, Int32, Int32, Color)

Fills the pixels. You will need to call Apply on the texture in order for changes to take place.

public:
[System::Runtime::CompilerServices::Extension]
 static void FillPixels(UnityEngine::Texture2D ^ texture2D, int row, int col, int width, int height, UnityEngine::Color fillColor);
public static void FillPixels (this UnityEngine.Texture2D texture2D, int row, int col, int width, int height, UnityEngine.Color fillColor);
static member FillPixels : UnityEngine.Texture2D * int * int * int * int * UnityEngine.Color -> unit
<Extension()>
Public Sub FillPixels (texture2D As Texture2D, row As Integer, col As Integer, width As Integer, height As Integer, fillColor As Color)

Parameters

texture2D
UnityEngine.Texture2D

The Texture2D.

row
Int32

The row to start filling at.

col
Int32

The column to start filling at.

width
Int32

The width to fill.

height
Int32

The height to fill.

fillColor
UnityEngine.Color

Color of the fill.

Remarks

This function considers row 0 to be left and col 0 to be top.

Applies to