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

Displaying WMI Query Result in UI Text Box???

Discussion in 'Scripting' started by RDG_Admin, Aug 12, 2019.

  1. RDG_Admin

    RDG_Admin

    Joined:
    Oct 4, 2014
    Posts:
    22
    I'm trying to display the Driver Version from this WMI Query Result into a UI Text Box for a small Unity project I'm working on. Is there anyway of scripting this in Unity?

     
  2. palex-nx

    palex-nx

    Joined:
    Jul 23, 2018
    Posts:
    1,745
    You may display any text including multyline using TextMesh, TextMeshPro, or Label components depending on your needs.
     
  3. RDG_Admin

    RDG_Admin

    Joined:
    Oct 4, 2014
    Posts:
    22
    I'm still unsure as to how to call this WMI Class using C# in Unity?
     
  4. palex-nx

    palex-nx

    Joined:
    Jul 23, 2018
    Posts:
    1,745
    Ah, your question was about querying WMI, not displaying text. You should be more specific :) I'm unsure too. It might be not working at all in mono, as many other windows-specific stuff. Whatever you're trying to know about the system, isn't https://docs.unity3d.com/ScriptReference/SystemInfo.html this enough?
     
  5. RDG_Admin

    RDG_Admin

    Joined:
    Oct 4, 2014
    Posts:
    22
    Sorry about the confusion. I am using SystemInfo stuff however the SystemInfo properties aren't enough as they do not give the option to show the specific driver number installed. Only the type (Direct X 11 or Direct X 12) but I need the specific driver number to be shown for the project I'm working on.