Click or drag to resize
ModelRendererGetMaterial Method
Get material for a given mesh id and part index.

Namespace:  GeonBit.ECS.Components.Graphics
Assembly:  GeonBit (in GeonBit.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public MaterialAPI GetMaterial(
	string meshId,
	int meshPartIndex = 0
)

Parameters

meshId
Type: SystemString
Mesh id to get material for.
meshPartIndex (Optional)
Type: SystemInt32
MeshPart index to get material for.

Return Value

Type: MaterialAPI

[Missing <returns> documentation for "M:GeonBit.ECS.Components.Graphics.ModelRenderer.GetMaterial(System.String,System.Int32)"]

See Also