active_res

This function returns the current size of the Minecraft window (in pixels). If no resolution has been set with waywall.set_resolution(), the returned width and height values will equal zero.

Arguments

None

Return values

  • width: number
  • height: number

This function cannot be called during startup.