Search Unity

Question Errors appear after adding assembly reference

Discussion in 'Scripting' started by jettzeong, May 28, 2023.

  1. jettzeong

    jettzeong

    Joined:
    Nov 5, 2018
    Posts:
    65
    I am currently following a tutorial to write unit tests in Play Mode for my game, where the tutorial mentioned that I need to add an assembly reference in my scripts folder. However, the moment I add the assembly reference, there are a few errors "TMPro not found" that would occur. May i know why does this happen?

    upload_2023-5-28_22-28-31.png
    Without Assembly Definition

    upload_2023-5-28_22-29-17.png
    With Assembly Definition
     
  2. spiney199

    spiney199

    Joined:
    Feb 11, 2021
    Posts:
    7,925