---
description: This page goes over the onRender2D event.
---

# Render 2D event

This event will be called upon in-game HUD being rendered. Handler name is `onRender2D`.

### `getPartialTicks(): Number`

Returns partial render ticks.

### `getScaledWidth(): Number`

Returns scaled width.

### `getScaledHeight(): Number`

Returns scaled height.

### `getScaleFactor(): Number`

Returns scale factor.

