Texture2DExt.FromBytes Method

Loads a texture from a file loaded in a byte array.

Namespace: UltimateXR.Extensions.Unity.Render
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0

Syntax

C#

public static Texture2D FromBytes(
	byte[] bytes
)

Parameters

 

bytes
Type: System.Byte[]
Image file byte array

Return Value

Type: Texture2D
The loaded Texture2D

See Also

Reference

Texture2DExt Class
UltimateXR.Extensions.Unity.Render Namespace