Search Unity

Feedback request: runtime read access to player options.

Discussion in 'Editor & General Support' started by laurentlavigne, Jan 1, 2021.

  1. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    6,364
    I'd like to display player options onscreen during development
    how do I do that?
     
  2. PraetorBlue

    PraetorBlue

    Joined:
    Dec 13, 2012
    Posts:
    7,911
    What are player options?
     
  3. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    6,364
    all these
    upload_2021-1-1_12-46-29.png
     
  4. Neto_Kokku

    Neto_Kokku

    Joined:
    Feb 15, 2018
    Posts:
    1,751
    Most of those are only writeable via editor APIs, so it's not possible.
     
  5. PraetorBlue

    PraetorBlue

    Joined:
    Dec 13, 2012
    Posts:
    7,911
    Can't you just open that player options window in the editor? Is it possible to dock that window?
     
  6. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    6,364
    ok, I changed the thread name to a request.
    reason: for testing best settings. incremental GC overhead, graphics jobs pros/cons, hardware specific like NVN queue size etc...)
     
  7. Neto_Kokku

    Neto_Kokku

    Joined:
    Feb 15, 2018
    Posts:
    1,751
    I think some can be changed at startup by editing the boot.config file, but not sure where to find a comprehensive list of parameters.
     
  8. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    6,364
    I'm not interested in changing them, just displaying them in the build. I found that many parameters have small influence on framerate and the easiest way to keep track is to build 10x variations and track what's what on the console screen.
     
  9. Neto_Kokku

    Neto_Kokku

    Joined:
    Feb 15, 2018
    Posts:
    1,751
    Yeah, no idea there. It's possible many of those only exist in the C++ side in builds. The only workaround I can think of is to use a build preprocessor to write them into a file/asset you can access at run time.