Texture2DExtensions Class

Definition

A collection of helper functions for Texture2D

C++
public ref class Texture2DExtensions abstract sealed
Inheritance
Texture2DExtensions

Methods

CaptureScreenRegion(Int32, Int32, Int32, Int32)

Captures a region of the screen and returns it as a texture.

CreateTextureFromRegion(Texture2D, Int32, Int32, Int32, Int32)

Creates a texture from a defined region.

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.

Applies to

Ürün Sürümler
MRTK2 Unity 2018 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0
MRTK2 Unity 2019 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0
MRTK2 Unity 2020 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0