Search Unity

  1. We are migrating the Unity Forums to Unity Discussions by the end of July. Read our announcement for more information and let us know if you have any questions.
    Dismiss Notice
  2. Dismiss Notice

Question SteamUtils - What is the origin of the game window?

Discussion in 'Linux' started by Gwe_GrosChevaux, May 11, 2023.

  1. Gwe_GrosChevaux

    Gwe_GrosChevaux

    Joined:
    Mar 29, 2014
    Posts:
    1
    Hi,

    I'm using SteamUtils.ShowFloatingGamepadTextInput to open a floating keyboard over the game content.

    I would like to have the keyboard at the top of the screen, but no matter what values I use, it is always at the bottom.
    According to the doc it looks like it should be possible:
    https://partner.steamgames.com/doc/api/ISteamUtils#ShowFloatingGamepadTextInput

    It mentions: "The text field position is specified in pixels relative the origin of the game window" does anyone know what that is?
    top-left? or is the center 0,0 ?

    Thank you!