add

fun add(instance: MeshInstancesResource.Instance): Boolean

Adds a new instance to the resource.

Return

Whether the instance is added successfully.

Parameters

instance

The instance to add.

Throws

IllegalStateException

If this resource is closed or invalid.

IllegalArgumentException

If instance.customFloatData length is greater than customDataCount.