Search Unity

Bug Runtime Platform does not contain a definition for 'VisionOS'

Discussion in 'UGUI & TextMesh Pro' started by unity_C0FA7870BAC0136C5C51, Feb 20, 2024.

  1. unity_C0FA7870BAC0136C5C51

    unity_C0FA7870BAC0136C5C51

    Joined:
    Dec 20, 2023
    Posts:
    4
    Hello every,
    I create a new project to test and install TMP 3.2.0-pre.8 then this error show up
    Library\PackageCache\com.unity.textmeshpro@3.2.0-pre.8\Scripts\Runtime\TMP_InputField.cs(456,42): error CS0117: 'RuntimePlatform' does not contain a definition for 'VisionOS'
    any suggestion to fix this bug? thank you
     
  2. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,281
    What version of Unity are you using? Try updating to the latest or the latest patch version.
    VisionOS is a new platform that may not be in some older versions.
     
  3. unity_C0FA7870BAC0136C5C51

    unity_C0FA7870BAC0136C5C51

    Joined:
    Dec 20, 2023
    Posts:
    4
    thank you for replying.
    I'm using Unity 2023.1.3f1 and cannot upgrade to latest version at the moment.
     
  4. unity_C0FA7870BAC0136C5C51

    unity_C0FA7870BAC0136C5C51

    Joined:
    Dec 20, 2023
    Posts:
    4
    I checked the document here and saw that version 2022.3 RuntimePlatform already contains VisionOS but Unity version 2023.1 does not have VisionOS in RuntimePlatform. Is that a bug?
     
  5. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,281
    No. Support moved from the tech release 2023.1 to the next one 2023.2. 2022.3 is LTS so will still receive updates.
    https://unity.com/releases/lts-vs-tech-stream
     
  6. JuliaP_Unity

    JuliaP_Unity

    Unity Technologies

    Joined:
    Mar 26, 2020
    Posts:
    698
    Hello! This is a reported bug and it's being fixed already. In the meantime the easiest solution is to copy the TMP package code locally and edit the asmdef file to fix the problem. Sorry for the disruption!
     
  7. unity_C0FA7870BAC0136C5C51

    unity_C0FA7870BAC0136C5C51

    Joined:
    Dec 20, 2023
    Posts:
    4
    thank you very much!