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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    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:
    265
    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.
     
  2. tomkail_betterup

    tomkail_betterup

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