[–] 11 points 2 years ago (2 children)

I spent a week and really liked Godot, lightweight, amazing UX, very compatible with Linux, and the feeling of being part of a community is so good. C# support is great, but not as good as Gdscript, and coding in C# is so much faster for me. For instance there is no hot reloading on C#. Managed to get Vs code working and debugging after as while but broke the compatibility with unity of Vs code. So it's tricky to work on both engines on Vs code simultaneously.

  • source
  • parent
  • context
  •  

    Hey guys, unity refugee here:

    I'm gonna try to port my 7 year game to Godot, lets see how it goes. Since it's a massive project and I am coming to unity I have decided to use C# instead of GDScript (which I did try for a while and may even use in some scripts).

    I have had two crazy last days working on how to set up intellisense and Debugging on my linux machine for Godot (it should work similar for windows) for C#. So here is a guide of how I managed, in case someone else faces the same problem to save them some headaches:

    1.Follow this guys tutorials which are amazing especially to sort the debugging out:https://www.youtube.com/watch?v=xKjfjtLcWXw&t=279s (Linux)

    https://www.youtube.com/watch?v=c_cdAYDHR0E&t=58s (windows)

    He will tell you to only install the C# extension on VSCode

    If you still have issues you may try the following:

    1. if you have many different versions of .net uninstall themFrom discover I installed .net core sdk only one, otherwise the variables get mixed up.

    2. I also uninstalled Vs code and all the configurations and settings https://code.visualstudio.com/docs/setup/uninstall, and installed Vs code from the snap store.

    3. Put the exec file shortcut:

      Open the Editor Settings

      Select Text Editor > External

      Make sure the Use External Editor box is checked

      Fill Exec Path with the path to your VS Code executable

      /snap/bin/code (for Linux)

      Fill Exec Flags with {project} --goto {file}:{line}:{col}

    5 .A the key part is when/if you lose instellisense, press ctrl+shift+P-> .Net generate assets to build and debug

    Let me know if you need more help or I am missing something please. I so glad this is working now :)

     

    I have been working on this game since 2016, I had the vision of creating a 2D No mans sky to explore an endless galaxy but also enjoy action top down combat, on and off planets, I put up the free prologue a while ago on Steam. If you like space games, feel free to check it out and give some suggestions

    view more: next ›