Home Forums Software Development Finding Screen Size and units Reply To: Finding Screen Size and units

#527
Robert [Tobii]
Participant

Update: If you are using the latest Unity SDK package (version 0.14 or later), you only need these lines in OnDisplaySizeSettingEvent

    private void OnDisplaySizeSettingEvent(SettingsBag settings)
    {
        Size2 displaySize;       
        settings.TryGetSettingValue(out displaySize, SettingsPaths.EyeTracking, SettingsPaths.DisplaySize);

        print("Display size: " + displaySize.Width + " x " + displaySize.Height + " mm");
    }