NodeWorld

ImageConversion

La référence est en anglais : elle est générée à partir des commentaires du code, écrits en anglais.

csharp
public static class ImageConversion

Namespace NodeWorld.Flux.

Decodes images into textures of the world, as Unity's ImageConversion: a PNG or JPG in bytes (a web response, HttpClient.GetByteArrayAsync) becomes a Texture to give to a material. The texture belongs to the world: it is destroyed when the world leaves (or by Object.Destroy).

Methods

LoadImage

csharp
public static Texture LoadImage(byte[] data)

A new texture with the picture of the bytes (PNG or JPG); null if they are not one, and on the server (nothing renders there).