Type Function Return value Boolean Revision Release 2022.3683 Keywords steam, steamworks, setNotificationPosition See also steamworks.setAchievementProgress() steamworks.setAchievementUnlocked() steamworks.*
Sets where Steam's notification popups will appear within the application window. Steam notification popups appear when achievements have been unlocked, when friends appear online, etc. It is recommended to position notifications in a corner of the application window that won't cover up vital gameplay content. This position can be changed dynamically during the lifetime of the application, such as after scene changes.
Returns true
if the notification position was successfully assigned.
Returns false
if given invalid arguments or if the steamworks.isLoggedOn property is false
.
Notification popups won't appear in the app if the steamworks.canShowOverlay property is false
.
Notification popup position always defaults to the
Steam will not store or remember the last assigned notification position after the application exits.
steamworks.setNotificationPosition( positionName )
String. Indicates where within the application window notification popups should appear. Must be set to one of the following:
"topLeft"
"topRight"
"bottomLeft"
"bottomRight"
local steamworks = require( "plugin.steamworks" ) steamworks.setNotificationPosition( "topRight" )