Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Feature Request Compliant controller/button images

Discussion in 'Multiplatform Dev Blitz Day 2023 - Q&A' started by Baste, Jun 22, 2023.

  1. Baste

    Baste

    Joined:
    Jan 24, 2013
    Posts:
    6,194
    When we're showing tooltips in-game for which buttons to press to do an action, or when we're showing a rebind menu, we should ideally show images that matches the user's plugged in controller. For consoles, this is required, and having unclear or wrong images (or god forbid images for a different console) will make the game fail cert.

    So we always have to source these images from somewhere (fun fact, they're not necessarily supplied by the consoles!), and then match images to key codes. This is easier these days with the new input system than with the old one, but we still have to do this very cumbersome "hey if this is an xbox controller and it's button south, show the A image".

    Ideally (for the sake of simplicity for users) every game should be showing the exact same images for the same button on the same controller - perhaps with a dark and light team to give better contrast with the game's graphics.

    Would it be possible for Unity to supply a package/API where we could input a new input system keybind, the current used controller, and get out a texture/sprite that represented that keybind on that controller?
     
    saskenergy, Meatloaf4 and JesOb like this.
  2. Schubkraft

    Schubkraft

    Unity Technologies

    Joined:
    Dec 3, 2012
    Posts:
    1,067
    Hey Baste, this sounds like a reasonable thing for Unity to provide to ease cross platform development. We've added it to our review list for the Input team.
    Can't commit to anything more than that at the moment. Thank you!