inViewport

abstract fun inViewport(checkIfObstructed: Boolean): Boolean
abstract fun inViewport(): Boolean

Returns true if the object is currently rendered in the viewport.

Return

true if the object is currently rendered in the viewport, otherwise false.