setInstanceCount

fun setInstanceCount(instance: EntityInstance, instanceCount: Int)

Changes the number of draw instances; 0 skips the renderable in every pass. Manual instancing clamps it to 0..32767; with an InstanceBuffer it must not exceed the buffer's count nor Engine.maxAutomaticInstances.