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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

SystemInfo

Discussion in 'WebGL' started by roka, May 24, 2015.

  1. roka

    roka

    Joined:
    Sep 12, 2010
    Posts:
    584
    Hello,

    It seem that with a webgl build, we can't have acces at some information returned by SystemInfo like processorType ect ...

    Do unity will allow us to get graphics card informations like graphicsDeviceID and graphicsDeviceVendorID in a near futur?

    I use some informations returned by SystemInfo to generate a unique serial ID (used for my ban system) and losing these informations are not a good new for me.

    By using the web player it's not a problem but with webgl, the only solutions that i have found is to make a loader with an unity .exe to get the value and then i accept the player to connect to my game (webgl) only when he have first used the loader.

    Anyone have some informations about that?

    Thank you and have a good day.
     
  2. insmo

    insmo

    Joined:
    Apr 17, 2015
    Posts:
    12
    When WebGL is ran in the browser you cannot access systeminfo.
     
  3. jonas-echterhoff

    jonas-echterhoff

    Unity Technologies

    Joined:
    Aug 18, 2005
    Posts:
    1,666
    While some fields in SystemInfo (like operatingSystem) will work, others (like info on GPU/CPU) won't, and that is not likely to change in the future. The reason is that browsers will not supply this information to scripts for privacy reasons.

    In general, it is not considered desirable to be able to uniquely identify web users from a privacy point of view (which is what you want to do). Though there are currently ways to do it pretty reliably - and a lot of discussions about the legality and morality of such methods - Google "Evercookie" or "browser fingerprinting" for more info.
     
  4. roka

    roka

    Joined:
    Sep 12, 2010
    Posts:
    584
    Thank for the answer Jonas.