Skip to content

Render

isReflectionRender(): boolean

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

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.

boolean


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

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

Entity | GridEntity

string

float

float

void


renderTextOnEntity(entity, text): void

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

Entity | GridEntity

string

void