UIRotateImage
Renders an image with rotation around its center for dials, needles, and spinners.
Create in the Editor
- Ensure there is a
UIControllerin the scene. - Create a GameObject and add
UIRect. - Add the
UIRotateImagecomponent.
How to Use
- Get the component with
myObject.findComponent(UIRotateImage.class). - Read and write the component properties to control behavior.
- Test input or layout in Play mode.
Java Example
SpatialObject myObject = /* your object */;
UIRotateImage comp = myObject.findComponent(UIRotateImage.class);
if (comp != null) {
Texture tex = /* load texture */ null;
// set the angle value:
comp.angle = 1f;
// read the angle value:
float angleValue = comp.angle;
// set the texture value:
comp.texture = tex;
// read the texture value:
Texture textureValue = comp.texture;
}