Search Unity

Let User Pick Graphics API

Discussion in 'Windows' started by crstrater86, Mar 5, 2019.

  1. crstrater86

    crstrater86

    Joined:
    Oct 28, 2017
    Posts:
    3
    Hello,

    I was wondering how to let the user choose the graphics API they want to use. Right now I have some players with older machines that are having trouble with DirectX and Vulcan but OpenGL works fine. Right now I only have the game running in OpenGL, but I would like to have the options for users to pick Vulcan or DirectX if they so choose.
     
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,674
  3. crstrater86

    crstrater86

    Joined:
    Oct 28, 2017
    Posts:
    3
    So would I create multiple builds with the different APIs?
     
  4. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,674
    No, just create a build with all graphics APIs present, and then make a wrapper app that displays graphics API options for your game and then launch your game with appropriate command line arguments from it.