Get the depth of the element, a larger number is further into the screen and elements with a smaller number will appear on top.
Returns the opacity level, between 0 (fully transparent, i.e invisible) and 1 (fully opaque), at which the VoxelObject is rendered
Returns the rate at which the VoxelObject animation is played (or would be played, if isPlaying() is false). A rate of 1 means that the animation is played at its default speed as intended by its author, while a rate of 0.5 is half speed, a rate of 2 is twice the speed, etc... A negative value plays the animation backwards.
Get the rotation in radians.
Gets the size of the element in UI-size units. Note that it is not recommended to use this in combination with setSize2D.
Returns the current time position in the VoxelObject animation, in seconds.
Returns the VoxelObject this element is displaying.
Indicates whether this VoxelObject element is playing the VoxelObject animation.
Indicates whether this element is visible or not.
Sets whether the VoxelObject displayed by this element should be played (i.e. animated).
Use true to play the VoxelObject animation, false to keep it static, in which case, setTime() dictactes which frame of the animation is showed.
Sets the tint color of the voxel object displayed by this element.
Set the depth of the UIElement, a larger number is further into the screen and elements with a smaller number will appear on top.
The depth layer to place the element on.
Sets the 2d size of the element in normalized coordinates, also known as UI-position units. For example, a size of (0.5, 1) would indicate an element that covers half the screen horizontally and the whole screen vertically. Note: this will affect the same internal state as setSize. Note: If the window/canvas changes size, you will need to call this again.
Sets the opacity level, between 0 (fully transparent, i.e invisible) and 1 (fully opaque), at which the VoxelObject is rendered. This is used to make the VoxelObject see-through.
The opacity level between 0 and 1.
Sets the rate at which the VoxelObject animation is played. This has no effect if the isPlaying() is false. A rate of 1 means that the animation is played at its default speed as intended by its author, while a rate of 0.5 is half speed, a rate of 2 is twice the speed, etc... A negative value plays the animation backwards.
Sets the position of this element, in UI-position units.
The position, in UI-position units.
Set the rotation in radians.
Sets the size of the element in UI-size units. This will make the element uniformly scaled on both the X and Y axis.
Sets the 2d size of the element in UI-size units. For example, a size of (2, 1) would indicate an element that has the default height and twice the default width. Passing in (1, 1) is equivalent to calling setSize(1).
Set the time position in the VoxelObject animation, in seconds.
Sets the visibility of the element (i.e. hide or show) in the UI.
Use true to show the element or false to hide it.
Sets the voxel object.
Updates the time of this element so it displays the VoxelObject frame at the animation key specified by its index. If the index is negative the first key is used. If it's greater than the number of keys, the last key is used.
The index of the animation key in the VoxelObject sequence which frame we want to display.
Get the the tint color of the voxel object being displayed by this element.