Search Unity

How you add an existing DLL to your project?

Discussion in 'General Discussion' started by NewMagic-Studio, Aug 31, 2020.

  1. NewMagic-Studio

    NewMagic-Studio

    Joined:
    Feb 25, 2015
    Posts:
    454
    I have a dll but i cannot use it in my scripts using "using" and the name of the dll, how can i use their classes??
     
  2. CityGen3D

    CityGen3D

    Joined:
    Nov 23, 2012
    Posts:
    681
    In Visual Studio, you need to Add Reference in your project to the library.
    Menu Bar->Project->Add Reference
     
    NewMagic-Studio likes this.
  3. NewMagic-Studio

    NewMagic-Studio

    Joined:
    Feb 25, 2015
    Posts:
    454
    Gives an error saying there is already a reference with that name
     
  4. NewMagic-Studio

    NewMagic-Studio

    Joined:
    Feb 25, 2015
    Posts:
    454
    Ok, i had to use the name of the member of the dll and not the dll name