ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client functions
  3. getMeshInfo

Function

getMeshInfo

ClientGame engineTrilogy Hub only

Returns data about a model from engineLoadMesh: the format, the number of vertices and triangles and the bounds { minX, minY, minZ, maxX, maxY, maxZ } in metres.

Syntax

table getMeshInfo(mesh mesh)

Arguments

meshmesh
The model.

Returns

A data table or false.

Example

local info = getMeshInfo(engineLoadMesh("modele/pomnik.glb"))
if info then outputChatBox(info.triangles .. " trójkątów") end

See also