GeonBit Documentation
GeonBit Documentation
GeonBit
GeonBit.Core.Graphics
ModelEntity Class
ModelEntity Methods
CopyMaterials Method
DoEntityDraw Method
GetMaterial Method
GetMaterials Method
SetMaterial Method
SetMaterials Method
ModelEntity
SetMaterial Method
Set alternative material for a specific mesh id.
Namespace:
GeonBit.Core.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
ModelEntity Class
GeonBit.Core.Graphics Namespace
GeonBit ECS game Engine. By Ronen Ness, 2017.
Send comments on this topic to
ronenness@gmail.com