Type Event Revision Release 2022.3683 Keywords steam, steamworks, overlay, overlayStatus See also steamworks.addEventListener() steamworks.*
This event occurs when the Steam overlay has been shown or hidden. An overlay can be shown by calling the plugin's "show" APIs or when the user has pressed
You can receive these events by adding a listener to the plugin via the steamworks.addEventListener() function.
local steamworks = require( "plugin.steamworks" ) -- Called when the Steam overlay has been shown/hidden local function onOverlayStatusChanged( event ) if ( event.phase == "shown" ) then -- Steam overlay is being shown -- You might want to pause gameplay here else -- Steam overlay is no longer being shown end end -- Set up a listener to be invoked when the Steam overlay has been shown/hidden steamworks.addEventListener( "overlayStatus", onAchievementUpdated )