Search Unity

How to use an C# library in unity?

Discussion in 'Scripting' started by TheRaider, Sep 4, 2021.

  1. TheRaider

    TheRaider

    Joined:
    Dec 5, 2010
    Posts:
    2,250
    I really want to be able to read FITS files in unity to make 3d graphical representations.

    I found this c# library https://github.com/SidWatch/CSharpFITS

    I don't however know what steps to use it in unity. Help please!
     
  2. TheRaider

    TheRaider

    Joined:
    Dec 5, 2010
    Posts:
    2,250
    I have read you can just drop dll's in the plugins folder to work, however this doesn't appear to have that. Is there a way I can turn it into a dll?
     
  3. kdgalla

    kdgalla

    Joined:
    Mar 15, 2013
    Posts:
    4,638
    You should be able to compile it to a managed dll with visual studio, which is included with the Unity install. I don't know if that's necessary, though. Are sure you can't just put the code files in the plugins folder?
     
    TheRaider likes this.
  4. TheRaider

    TheRaider

    Joined:
    Dec 5, 2010
    Posts:
    2,250
    I am not sure, i have zero clue what i am doing.
     
  5. orionsyndrome

    orionsyndrome

    Joined:
    May 4, 2014
    Posts:
    3,108
  6. TheRaider

    TheRaider

    Joined:
    Dec 5, 2010
    Posts:
    2,250
    I put the files in the plugin folder and it worked!

    Thanks
     
    Kurt-Dekker likes this.