Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

Should I use unity dll in .net core library ?

Discussion in 'Game Design' started by qwench, Sep 12, 2022.

  1. qwench

    qwench

    Joined:
    May 2, 2022
    Posts:
    13
    Hi all

    I started to learn unity 4 months ago on my free time by developing a classic topdown rpg.
    My solution contains the unity script project, and I choose to create an independant 'Rpg engine' .net core project.
    The main goal is to separate two parts of the game: interface and engine.

    I initially added the unity core library in my engine, but I'm now considering to get rid of it and use pure .net core code.
    Unity dll is actually mainly used for vectors and bounds structures, which can be replace with points and rectangles .net core objects.

    Before changing the code, I need some advice from advanced developers:
    Is it a good approach ? Will it introduce some problems later on ? Or maybe performances problems ?
    The goal is to avoid unity dll updates synchronization and have an independent .net library.

    Does it makes any difference if I want to publish on android or mac/linux ?

    Thanks
     
  2. Chris-Trueman

    Chris-Trueman

    Joined:
    Oct 10, 2014
    Posts:
    1,229
    You answered your question right there.