Search Unity

  1. Unity 2020.1 has been released.
    Dismiss Notice
  2. We are looking for feedback on the experimental Unity Safe Mode which is aiming to help you resolve compilation errors faster during project startup.
    Dismiss Notice
  3. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Access scene custom classes in methods with the UnityTest attribute

Discussion in 'Testing & Automation' started by dienat, May 20, 2019.

  1. dienat

    dienat

    Joined:
    May 27, 2016
    Posts:
    399
    Hi,

    I have been using TDD and UnityTest attribute to run a scene but once i load the scene in the method with the UnityTest attribute i would like to use classes used in the scene. I tried adding the classes of the C# assembly project where are the classes used in the scene to the Test project where are the classes for testing but it doesnt work, i would like for instance check if certain class is used in the scene.
     
  2. Warnecke

    Warnecke

    Unity Technologies

    Joined:
    Nov 28, 2017
    Posts:
    60
  3. dienat

    dienat

    Joined:
    May 27, 2016
    Posts:
    399
    It was a monobehaviour from other project,but i got to solve this problem thanks
     
unityunity