Click or drag to resize

MeshInstanceGetActiveMaterial Method

Returns the Material that will be used by the Mesh when drawing. This can return the MaterialOverride, the surface override Material defined in this MeshInstance, or the surface Material defined in the Mesh. For example, if MaterialOverride is used, all surfaces will return the override material.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public Material GetActiveMaterial(
	int surface
)

Parameters

surface
Type: SystemInt32

[Missing <param name="surface"/> documentation for "M:Godot.MeshInstance.GetActiveMaterial(System.Int32)"]

Return Value

Type: Material

[Missing <returns> documentation for "M:Godot.MeshInstance.GetActiveMaterial(System.Int32)"]

See Also