GeonBit Documentation
GeonBit Documentation
GeonBit
GeonBit.ECS.Components.Graphics
ModelRenderer Class
ModelRenderer Methods
Clone Method
GetMaterial Method
GetMaterials Method
SetMaterial Method
SetMaterials Method
ModelRenderer
SetMaterial Method
Set alternative material for a specific mesh id.
Namespace:
GeonBit.ECS.Components.Graphics
Assembly:
GeonBit (in GeonBit.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
Copy
public
void
SetMaterial
(
MaterialAPI
material
,
string
meshId
= "" )
Parameters
material
Type:
GeonBit.Core.Graphics.Materials
MaterialAPI
Material to set.
meshId
(Optional)
Type:
System
String
Mesh name. If empty string is provided, this material will be used for all meshes.
See Also
Reference
ModelRenderer Class
GeonBit.ECS.Components.Graphics Namespace
GeonBit ECS game Engine. By Ronen Ness, 2017.
Send comments on this topic to
ronenness@gmail.com