Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug 'Object' does not contain a definition for 'FindFirstObjectByType' after upgrading to version 3.2.0-

Discussion in 'UGUI & TextMesh Pro' started by Kalita2127, Oct 12, 2023.

  1. Kalita2127

    Kalita2127

    Joined:
    Dec 6, 2014
    Posts:
    267
    I just upgraded my TextMeshPro to version 3.2.0-pre.6 but I got this error
    Library\PackageCache\com.unity.textmeshpro@3.2.0 pre.6\Scripts\Editor\TMPro_CreateObjectMenu.cs(339,31): error CS0117: 'Object' does not contain a definition for 'FindFirstObjectByType'
    . And when I checked inside the script that line and many other lines is white color. Definitely there's something wrong here but I just have no clue.
     
    Imm0rt4l_PL likes this.
  2. tomkail_betterup

    tomkail_betterup

    Joined:
    Nov 17, 2021
    Posts:
    105
    We're seeing this too. Unity 2021.3. Docs state that FindFirstObjectByType should exist in this version but it doesn't.
     
    Imm0rt4l_PL likes this.