Click or drag to resize

MeshSetRendererAspectReplace(Guid, MeshReference, MeshMaterial, Matrix) Method

Replace an existing mesh with a new one of the same id.

Namespace: Demo3D.Visuals.Renderers.Mesh
Assembly: Demo3D.Core (in Demo3D.Core.dll) Version: 19.01.00
Syntax
C#
public void Replace(
	Guid id,
	MeshReference newMeshRef,
	MeshMaterial[] materials,
	Matrix matrix
)

Parameters

id  Guid
Id of the existing mesh
newMeshRef  MeshReference
Reference of the new mesh, if null existing mesh will be removed
materials  MeshMaterial
Materials of the new mesh
matrix  Matrix
Matrix of the new mesh

Implements

IMeshSetRendererAspectReplace(Guid, MeshReference, MeshMaterial, Matrix)
See Also