Skip to main content

UIJoystick

Complete API reference for UIJoystick, including constructors, attributes, virtual attributes, and methods.

Package: JAVARuntime

Category: UI

Component: yes


public class UIJoystick extends Component

Constructors

SignatureDescription
UIJoystick()Creates a new instance of UIJoystick.

Virtual Attributes

NameTypeAccessDescription
backgroundColorColorget/setVirtual attribute exposed by getBackgroundColor. Access it like a field to read or write the underlying value.
backgroundTextureTextureget/setVirtual attribute exposed by getBackgroundTexture. Access it like a field to read or write the underlying value.
handleSizePercentagefloatget/setVirtual attribute exposed by getHandleSizePercentage. Access it like a field to read or write the underlying value.
handlerColorColorget/setVirtual attribute exposed by getHandlerColor. Access it like a field to read or write the underlying value.
handlerTextureTextureget/setVirtual attribute exposed by getHandlerTexture. Access it like a field to read or write the underlying value.

Methods

SignatureReturnsDescription
getValue()Vector2Returns the current value value.
getBackgroundColor()ColorReturns the current backgroundColor value.
getBackgroundTexture()TextureReturns the current backgroundTexture value.
getHandleSizePercentage()floatReturns the current handleSizePercentage value.
getHandlerColor()ColorReturns the current handlerColor value.
getHandlerTexture()TextureReturns the current handlerTexture value.
setBackgroundColor(Color)voidSets backgroundColor.
setBackgroundTexture(Texture)voidSets backgroundTexture.
setHandleSizePercentage(float)voidSets handleSizePercentage.
setHandlerColor(Color)voidSets handlerColor.
setHandlerTexture(Texture)voidSets handlerTexture.