Show / Hide Table of Contents

Method LoadImage

| Edit this page View Source

LoadImage(byte[])

Wrapper for https://docs.unity3d.com/ScriptReference/ImageConversion.LoadImage.html, creates a new Texture2D.
Declaration
public static Texture2D LoadImage(byte[] data)
Parameters
Type Name Description
byte[] data The byte array containing the image data to load.
Returns
Type Description
Texture2D A new texture with the loaded image if the data can be loaded, null otherwise
| Edit this page View Source

LoadImage(Texture2D, byte[])

Wrapper for https://docs.unity3d.com/ScriptReference/ImageConversion.LoadImage.html.
Declaration
public static bool LoadImage(Texture2D texture, byte[] data)
Parameters
Type Name Description
Texture2D texture The texture to load the image into.
byte[] data The byte array containing the image data to load.
Returns
Type Description
bool true if the data can be loaded, false otherwise
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Generated by DocFX
☀
☾