Skip to main content

MeshFilter

Properties


material (Material)
mesh (Mesh)

Constructor


Empty constructor

Methods


updateMaterial()

Updates the materials properties.

setMaterial(material : Material)

Sets the material of the mesh.

setMesh(mesh : Mesh)

Sets the mesh of the mesh filter.

setMesh(mesh : string)

Sets the mesh primitive of the mesh filter. Anything other than the valid types will be set to an empty mesh. Valid types include:

  • Cube
  • Sphere
  • Cone
  • Torus