UIRotateImage
Renderiza imagem com rotacao no centro para ponteiros e mostradores.
Criar no Editor
- Garanta que existe um
UIControllerna cena. - Crie um GameObject e adicione
UIRect. - Adicione o componente
UIRotateImage.
Como Usar
- Pegue o componente com
myObject.findComponent(UIRotateImage.class). - Leia e altere as propriedades do componente para controlar o comportamento.
- Teste o input ou layout no modo Play.
Exemplo em Java
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;
}