Search Unity

How do you go about testing prefabs?

Discussion in 'Scripting' started by warrickct, Mar 20, 2019.

  1. warrickct

    warrickct

    Joined:
    Oct 26, 2017
    Posts:
    4
    Hi,

    I'm currently learning Unity's testing things and I was wondering how I could test using prefabs? If there's no clear way then what is the alternative to having to create lots of dummy objects and wiring them up to mirror a prefab's structure?
     
  2. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    Not sure what you mean by "test using prefabs." Using prefabs isn't that much about the structure, as the structure is the same for any scene object you would create there. The main point of prefabs is so you can instantiate any number of them you need, whether that is 0 or 1,000, whenever you need them.