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

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:
    5,981
    I'd like to display player options onscreen during development
    how do I do that?
     
  2. PraetorBlue

    PraetorBlue

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

    laurentlavigne

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

    Neto_Kokku

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

    PraetorBlue

    Joined:
    Dec 13, 2012
    Posts:
    7,697
    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:
    5,981
    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,750
    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:
    5,981
    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,750
    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.