SystemInfo not working?

Hi there, I am trying to display the device name (docs) by using Debug.Log(SystemInfo.deviceName);, and get the error 'SystemInfo' does not contain a definition for 'deviceName'. I am getting this error with all of the other properties (I don’t know if that’s what they’re called) in SystemInfo. There might be something I’m doing blatantly wrong :stuck_out_tongue:

Full script:

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Test : MonoBehaviour
{
    void Start()
    {
        Debug.Log(SystemInfo.deviceName);
    }
}

Many thanks

If only Visual Studio is reporting this, that’s just VS failing in the usual intellisense ways.

If Unity is reporting this in the console, then it’s a real problem, but I just checked and it works fine on Unity2020.1.5f1

This may help you with intellisense problems:

Also, try update the VSCode package inside of Unity: Window → Package Manager → Search for Visual Studio Code Editor → Press the Update button

Also, this: No suggestions in Vscode

I’m using Sublime Text. I’m getting the error in the Unity Console (2020.1.14f1 on Ubuntu 20.04)

Something wrong with your Unity installation… Try a reimport-all in the project. I just copy-pasted your code and it’s fine.

I reimported all, didn’t work.
I reinstalled the editor version, also didn’t work.

I’m using Linux, do you think this has anything to do with it?

Could be, I have no experience using Unity under Linux.

Is there anyone here who uses Unity on Linux?

Could it be something to do with bad dll’s? In Rider the intellisense for Unity works, but doesn’t recognise any of the SystemInfo properties, nor does Code.