update

fun update(id: String, transform: Transform): Boolean

Updates an instance in the resource.

Return

Whether the instance is updated successfully.

Parameters

id

The ID of the instance to update.

transform

The transform of the instance to update.

Throws

IllegalStateException

If this resource is closed or invalid.


fun update(id: String, transform: Transform, customFloatData: FloatArray): Boolean

Updates an instance in the resource with both transform and custom float data.

Return

Whether the instance is updated successfully.

Parameters

id

The ID of the instance to update.

transform

The transform of the instance to update.

customFloatData

The custom float data of the instance to update.

Throws

IllegalStateException

If this resource is closed or invalid.

IllegalArgumentException

If customFloatData length is greater than customDataCount.