onRenderingCenterChanged

protected open fun onRenderingCenterChanged(x: Float, y: Float)

Override this function to be notified when the rendering center of the screen changes.

This function is called whenever there is an update to the rendering center coordinates, which can be used to adjust or realign UI elements or other screen components as needed.

Parameters

x

the new x-coordinate of the rendering center

y

the new y-coordinate of the rendering center

See also

ScreenService.setRenderingCenterX
ScreenService.setRenderingCenterY