⚠ Preview docs — built from the develop branch and may be unstable. Go to the stable docs.

Mesh.FromMemory

static Mesh FromMemory(string filename, Byte[]& data, int loadPriority)

Loads a single Mesh from the contents of a .stl, .ply (ASCII), or .svg file already in memory. This behaves exactly like Mesh.FromFile.

   
string filename A filename or extension used to pick the format, like “logo.svg” or “.stl”.
Byte[]& data The contents of the mesh file.
int loadPriority The priority sort order for this asset in the async loading system. Lower values mean loading sooner.
RETURNS: Mesh A Mesh asset, or null if the file type is unrecognized!




Found an issue with these docs, or have some additional questions? Create an Issue on Github!