Search Unity

change render system by code

Discussion in 'Scripting' started by ghiboz, Aug 20, 2017.

  1. ghiboz

    ghiboz

    Joined:
    Sep 7, 2012
    Posts:
    465
    hi all!
    it's possible choose d3d11 or d3d12 by code (at startup?)

    thanks
     
  2. Scabbage

    Scabbage

    Joined:
    Dec 11, 2014
    Posts:
    268
  3. ghiboz

    ghiboz

    Joined:
    Sep 7, 2012
    Posts:
    465
  4. Baste

    Baste

    Joined:
    Jan 24, 2013
    Posts:
    6,334
    No. The rendering platform has to be set before you build the app. If you want your users to be able to select between rendering platforms, you have to build several versions of the game and ship them.
     
  5. ghiboz

    ghiboz

    Joined:
    Sep 7, 2012
    Posts:
    465
    thanks @Baste ,
    and if I set like this:

    what means? it uses dx12 but if is not able to use dx12, it uses dx11?