Search Unity

How to use a unity's dll into a console application

Discussion in 'Windows' started by Salvodif, Apr 25, 2020.

  1. Salvodif

    Salvodif

    Joined:
    Apr 25, 2020
    Posts:
    1
    Like I wrote in the subject I wondering how using the unity3d dlls into a console application.

    I just want use the ECS system for testing. Also I using Visual Studio 2019 comunity edition.

    thank you
     
  2. laurenta35

    laurenta35

    Joined:
    Jun 23, 2015
    Posts:
    3
    Hi,
    Did you find the solution? I'm also interested by this topic.
    Thanks
     
  3. fahadakas08

    fahadakas08

    Joined:
    Feb 2, 2021
    Posts:
    1
    **1. Create a new console application in Visual Studio.
    2. Right-click on the project and select "Add Reference".
    3. Click on "Browse" and locate the Unity DLL that you want to use.
    4. Select the DLL and click "OK".
    5. In your C# code, add a using statement for the namespace that contains the classes you want to use from the Unity DLL.
    6. Use the classes and methods from the Unity DLL in your code as needed.**