onInstancedMeshDispose method
void
onInstancedMeshDispose(
- dynamic event
Implementation
void onInstancedMeshDispose(event) {
var instancedMesh = event.target;
instancedMesh.removeEventListener('dispose', onInstancedMeshDispose);
attributes.remove(instancedMesh.instanceMatrix);
if (instancedMesh.instanceColor != null) {
attributes.remove(instancedMesh.instanceColor);
}
}