lovr.headset.isVisible
EditReturns whether LÖVR's content is being presented to the headset display. Normally this will be true, but some VR runtimes allow applications to be hidden or "minimized", similar to desktop windows.
visible = lovr.headset.isVisible()
Arguments
None
Returns
Name | Type | Description |
visible | boolean | Whether the application is visible. |
Notes
lovr.draw
may still be called even when the application is invisible, and apps should continue to render the scene normally because the VR system may use this for timing info. If the VR system decides that the application no longer needs to render, LÖVR will stop calling lovr.draw
.