Skip to content

IsWorldPosOnScreen

Read worldposonscreen from the current render or game view.

IsWorldPosOnScreen(worldPosition)

Inputs: worldPosition is a world { x, y, z } value.

Output: true when a world position is visible.

Errors and unavailable states: Returns false if the view cannot be projected or during a capture-only pass. A non-table position can raise a Lua indexing error; missing or non-numeric coordinates read as 0.

See Rendering overview for coordinate and color conventions.