setRotation

abstract fun setRotation(block: DesignBlock, radians: Float)

Update a block's rotation. Required scope: "layer/rotate"

Parameters

block

the block to update.

radians

the new rotation in the scene's angle unit (radians by default, see SceneApi.setAngleUnit). Rotation is applied around the block's center.