Skip to main content

Mesh

Client Server

Metamethods

boolean __eq(Mesh a, Mesh b)

Methods

nil ClearShape(PrimitiveTopology? topology)

integer AddVertex(Vec3 pos, Vec2? uv, Color? color)

integer AddVertex(Vec3 pos, Color color)

nil AddIndex(integer a, integer? b, integer? c)

nil AddShape(Shape shape, Color color)

Adds a Shape (Box/Sphere/Capsule/Cylinder/Polyhedron) to the mesh as triangles or lines, tinted by color.

Properties

boolean active

boolean activeInHierarchy

Object object

Object obj

boolean isDestroyed

string type

ResourceUsage resourceUsageMode

PrimitiveTopology topology

integer vertexCount

integer indexCount

Material material