Skip to main content

Render

Functions

isReflectionRender

isReflectionRender(): boolean

Helper function to see if the current render callback is rendering a water reflection.

When the player is in a room with water, things will be rendered twice: once for the normal rendering, and once for the reflecting rendering. Thus, any mod code in a render callback will run twice per frame in these situations, which may be unexpected or cause bugs.

This function is typically used to early return from a render function if it returns true.

Returns

boolean

Defined in

packages/isaacscript-common/src/functions/render.ts:13


renderScaledTextOnEntity

renderScaledTextOnEntity(entity, text, scaleX, scaleY): void

Parameters

NameType
entityEntity | GridEntity
textstring
scaleXfloat
scaleYfloat

Returns

void

Defined in

packages/isaacscript-common/src/functions/render.ts:19


renderTextOnEntity

renderTextOnEntity(entity, text): void

Parameters

NameType
entityEntity | GridEntity
textstring

Returns

void

Defined in

packages/isaacscript-common/src/functions/render.ts:43