struct MeshRenderer
A 32 bit handle.
MeshRenderer_Add(
GameObject
object )
: MeshRenderer
Attaches a mesh renderer to the game object.
MeshRenderer_Destroy(
MeshRenderer
mesh_renderer )
: void
Destroys the mesh renderer.
MeshRenderer_Get(
GameObject
object )
: MeshRenderer
Returns the first mesh renderer attached to the game object.
MeshRenderer_GameObject(
MeshRenderer
mesh_renderer )
: GameObject
Return the game object this mesh renderer is attached to.
MeshRenderer_LayerMask(
MeshRenderer
mesh_renderer )
: uint32_t
Returns the layer mask of this mesh renderer.
MeshRenderer_Mesh(
MeshRenderer
mesh_renderer )
: Mesh
Returns the mesh attached to this mesh renderer.
MeshRenderer_SharedMaterial(
MeshRenderer
mesh_renderer )
: Material
Returns the shared material attached to this mesh renderer.
MeshRenderer_SetLayerMask(
MeshRenderer
mesh_renderer, uint32_t mask )
: void
Sets the layer mask.
MeshRenderer_SetMesh(
MeshRenderer
mesh_renderer,
Mesh
mesh )
: void
Sets a new mesh.
MeshRenderer_SetMaterial(
MeshRenderer
mesh_renderer,
Material
material )
: void
Sets a new material. This will destroy any previous material instance.
MeshRenderer_MaterialInstance(
MeshRenderer
mesh_renderer)
: Material
Returns the material instance. Creates one if none exists.