Render
Functions
Section titled “Functions”isReflectionRender()
Section titled “isReflectionRender()”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.
Returns
Section titled “Returns”boolean
renderScaledTextOnEntity()
Section titled “renderScaledTextOnEntity()”renderScaledTextOnEntity(
entity,text,scaleX,scaleY):void
Defined in: packages/isaacscript-common/src/functions/render.ts:19
Parameters
Section titled “Parameters”entity
Section titled “entity”Entity | GridEntity
string
scaleX
Section titled “scaleX”float
scaleY
Section titled “scaleY”float
Returns
Section titled “Returns”void
renderTextOnEntity()
Section titled “renderTextOnEntity()”renderTextOnEntity(
entity,text):void
Defined in: packages/isaacscript-common/src/functions/render.ts:43
Parameters
Section titled “Parameters”entity
Section titled “entity”Entity | GridEntity
string
Returns
Section titled “Returns”void
