Using C# in Godot with Visual studio code [VSC]

Sdílet
Vložit
  • čas přidán 23. 08. 2024

Komentáře • 89

  • @HyBlock
    @HyBlock Před 11 měsíci +49

    C# support for android is coming really really soon, also the Terraria devs just donated 100k to godot so I expect development to ramp up fast! Exciting things are coming.

    • @guidoopossum457
      @guidoopossum457 Před 11 měsíci +1

      Stop. Is it mean I can't port C# game on Android now?

    • @fridyrogide8752
      @fridyrogide8752 Před 11 měsíci

      Is godot staffs made 8 millions dollars somewhere, on another program ?? I don't think they need money.....

    • @fridyrogide8752
      @fridyrogide8752 Před 11 měsíci

      They still need dedication and devotion, that's for sure

    • @HyBlock
      @HyBlock Před 11 měsíci

      @@fridyrogide8752 No idea what you're talking about.

    • @SexyBunnyCoder
      @SexyBunnyCoder Před 11 měsíci

      @@guidoopossum457 for a mature support of C# on all platforms, you should stick to Godot 3.x series until 4.2 is shipped ( and tested enough ).
      But it's unlikely that a new project on Godot 4 would be ready to publish on Android before the C# support is here ( a matter of weeks, it seems ).

  • @ryuu7644
    @ryuu7644 Před 11 měsíci +8

    I just discovered your channel holy I wish I had a long time ago, thank you so much for making these, the videos are animated so well and they are so easy to understand. Literally can't thank you enough.

    • @CocoCode
      @CocoCode  Před 11 měsíci +3

      Thanks! Welcome aboard! 🙌

  • @caeleng5553
    @caeleng5553 Před 11 měsíci +4

    I am switching from Unity to godot so glad you are doing the same with your tutorials ❤

  • @charlythompson9281
    @charlythompson9281 Před 11 měsíci +31

    Great stuff, thank you!! I hope you’ll do more C# for Godot - there aren’t very many out there.

    • @CocoCode
      @CocoCode  Před 11 měsíci +15

      For future Godot tutorials I'm planning to show everything in GDScript with alternative C# implementation on the side

    • @RogerDunder
      @RogerDunder Před 11 měsíci +4

      I would also love to see more c# for godot.
      Keep up the good job!

    • @Wagnard28
      @Wagnard28 Před 11 měsíci +1

      @@CocoCode If possible, a performance comparison might also be interesting.

    • @obinnaokafor6252
      @obinnaokafor6252 Před 11 měsíci +2

      Kindly create more of C# code examples. The more C# contents, the more people will be following your channel.

    • @jadsa
      @jadsa Před 11 měsíci +1

      Yeah C# would be more interesting for me.

  • @fuzzjohn
    @fuzzjohn Před 6 měsíci +3

    Just read this on the Godot website: "With the recent release of Godot 4.2, projects that use C# can now export to Android and iOS".

  • @torrescle
    @torrescle Před 11 měsíci +8

    People moving from Unity maybe think about GDScript. But they have to taken in account that GDScript only works with Godot. With C# you can work with anything. Plus C# is way way faster.

    • @HyBlock
      @HyBlock Před 11 měsíci +1

      You can use C# in Godot.

    • @torrescle
      @torrescle Před 11 měsíci +2

      @@HyBlock that's what I'm saying

    • @ReasonMakes
      @ReasonMakes Před 10 měsíci

      Unfortunate it can't be used with web though! (Or iOS or Android)

    • @HyBlock
      @HyBlock Před 10 měsíci

      @@ReasonMakes I think support for that is added already in development versions, should be coming soon

  • @dancingdoormanable
    @dancingdoormanable Před 11 měsíci +2

    This video on C# in Godot was sorely needed. Hopefully you do a follow up where you get the Business Logic of a game from a C# library. I could then share code between Unity and Godot. There would be specific project files for building the project as Godot and Unity use different .Net versions (Godot's version is newer), but the C# code would be the same. It's an application of the MVC pattern and somewhat similar to Entity Framework's DataContext servicing Plane Old Class Object's (POKO's).

  • @chizuru1999
    @chizuru1999 Před 8 měsíci

    c# in godot will make it more popular and amazing as its a great language and also is used in unity. People won't have to think twice before switching.

  • @alfieskidz8003
    @alfieskidz8003 Před 11 měsíci

    Thanks so much. Yours if the only one I have managed to understand and all works now

  • @CustomClass5
    @CustomClass5 Před 9 měsíci +1

    YES i've been trying to do this for HOURS but it keep just NOT WORKING so THANK YOU for posting code snippets on your website that is HUGE THANK YOU

  • @animelafuerza
    @animelafuerza Před 10 měsíci

    Gotta say, this setup for debug is 10 times better than the one included in the original documentation (or even in the C# plugin for godot)

  • @hey77tw
    @hey77tw Před 4 měsíci

    This is the best tutorial ever!!!!

  • @Azurly
    @Azurly Před 6 měsíci

    UPDATE : With 4.2 and high, you CAN now export your C# project on IOS and Android

  • @ভোমরা
    @ভোমরা Před 5 měsíci +1

    thanks man

  • @stoic7810
    @stoic7810 Před 9 měsíci

    Extremely valuable video. Thx.

  • @RoeldeB
    @RoeldeB Před 5 měsíci

    I would like to see more Godot videos.

  • @aahh437
    @aahh437 Před 11 měsíci

    Thank you for the tutorial

  • @SrSproductionsS
    @SrSproductionsS Před 11 měsíci +3

    I really like how much attention Godot got in the last few weeks due to Unity's bad pricing plan. This shows that Godot was always next in line to Unity, yet still people chose Unity more based on the community than feature support.

  • @rotrodoni9225
    @rotrodoni9225 Před 10 měsíci +2

    Hey, I have a problem when I try to make the console print "Hello world!", the program tells me: "Cannot instance script because the associated class could not be found. Script: 'res://control.cs'. Make sure the script exists and contains a class definition with a name that matches the filename of the script exactly (it's case-sensitive)" and it doesn't print it... Also, even after I installed the C# official extension of Visual Studio Code, the program doesn't suggest me anything yet (I installed it like 15 minutes ago). Could anyone help me?
    PD: When I create a new C# script, the program tells me "Failed to create C# project", I don't know if it has something to do with this.

    • @austencoogan6310
      @austencoogan6310 Před 5 měsíci

      I know this comment is 4 months old but I'm havng the same issue. Did you ever figure out how to fix it?

    • @rotrodoni9225
      @rotrodoni9225 Před 5 měsíci

      @@austencoogan6310 yes, if my memory serves me right, the problem was the .NET extension.
      The versión of .NET you have to install is .NET6 ONLY (My problem was that i had another version of the .NET extension apart from the .NET6, so I solved it reinstalling everything from the start)

  • @Brain.Scrambler
    @Brain.Scrambler Před 10 měsíci

    Preciate it 🙏🏾

  • @AGBWBREH
    @AGBWBREH Před 7 měsíci

    Hey! Whenever I type in GD.Print("Whatever"); nothing shows up in the console. I've made sure that it's not being filtered out too! Any ideas?

  • @gaggi3216
    @gaggi3216 Před 10 měsíci

    Got a question.
    When I create a c# script there is no class name. It says not available. Is this a problem and how can I fix it, because in the video the class name is N/A.
    Thanks for help

  • @nexuzinnovation-com
    @nexuzinnovation-com Před 11 měsíci

    The problem of signal connect is not working properly in Godot v4.1.1 IDE and totally not showing up under Visual Studio Code. This problem held in 2017, 2021 and now 2023, the same problem still there. This is not features but Godot minor toolchain issues, hopes the plugins and Godot updates the support to mobile and web soon.

  • @MaxIzrin
    @MaxIzrin Před 2 měsíci

    I tried using GDScript, and it reminded me of all the reasons I hate Python (which apparently it's a fork of?!).
    Is there any advantage to GDScript over C#?

  • @ashutoshgondole5944
    @ashutoshgondole5944 Před 4 měsíci

    If I download the C# dev kit extension, will it work

  • @Alex98776
    @Alex98776 Před 11 měsíci

    good video but one question, it is mandatory to download visual studio to start programming

    • @403gtfo
      @403gtfo Před 10 měsíci

      As a programmer for 12 years, the answer is no. I am not gatekeeping. you can do amazing things with a simple text editor and I highly recommend you use a bare bone simple one while you start to learn your first programming language.
      Once you have the basics down (vars, types, loops, functions, arrays, objects, classes, states, and data IO) and have created a few super small learning projects, then have a look at VS code.
      Advanced editors like Vs code will make programming 9999 times easier and better to work with but it will stunt your learning growth when you are just starting out especially if your editor is giving your snippets and assistance. Best to have a core grasp of the basics first then when you get to the new editor it will be amazing.
      As a programmer, your comprehension and creative solutions to complex problems are what is valuable.
      Keep at it! Build something awesome!

  • @op2265
    @op2265 Před 11 měsíci +5

    A guide on GDscript would be lovely

    • @403gtfo
      @403gtfo Před 10 měsíci

      1. Open the Editor Settings.
      2. Select Text Editor > External.
      3. Make sure the Use External Editor box is checked.
      4. Fill Exec Path with the path to your VS Code executable
      mine was C:\Users\USERNAME\AppData\Local\Programs\Microsoft VS Code\Code.exe
      5. Install the godot-tools pluging in VS code
      6. Restart everthing
      Should work the same as in this video :)

  • @Hockets
    @Hockets Před 3 měsíci

    What about c++?

  • @zandpmaster1072
    @zandpmaster1072 Před 10 měsíci

    for some reason when I open vscode is won't find the Godot package, "using Godot" is red, can anyone help?

    • @zandpmaster1072
      @zandpmaster1072 Před 10 měsíci

      ok I figured it out, in order to make the IDE happy, run the project and then it wouldn't do that

  • @goshawk_fly
    @goshawk_fly Před 10 měsíci

    Make video how to add Signal's code automaticly in VScode. Pls.

  • @Zadamanim
    @Zadamanim Před 10 měsíci

    0:30 Using Godot 4.1.1 on Windows 10, does not give me the option to create a new C# script, only GDscript... anyone know why?

    • @CocoCode
      @CocoCode  Před 10 měsíci

      Have you followed the very first step in the video? 0:07-0:22?

    • @Zadamanim
      @Zadamanim Před 10 měsíci +1

      @@CocoCode no
      sometimes i am stupid

  • @MichaelReyk
    @MichaelReyk Před 11 měsíci

    can you edit in c# using the default IDE? instead of visual studio??

    • @asteriadev
      @asteriadev Před 11 měsíci +1

      Yes, it can be seen here 0:46, but it only functions like a text editor; no intellisense, suggestions etc. unlike vs code

    • @MichaelReyk
      @MichaelReyk Před 11 měsíci

      @@asteriadev using the default is more comfortable and fast, but maybe we should prefer functions over confort and use visual studio anyways...

  • @lightning1o140
    @lightning1o140 Před 8 měsíci

    I don't have the c# option at 0:33

    • @CocoCode
      @CocoCode  Před 8 měsíci

      Please make sure to watch the video from the beginning - I'm covering such issue just after the intro

  • @sajadtroll9186
    @sajadtroll9186 Před 11 měsíci

    Yo master Coco. Is gdscript faster than c# to run?

    • @CocoCode
      @CocoCode  Před 11 měsíci +1

      According to Godot documentation C# is way faster (x4) - but that may be a bit outdated due to recent GDScript improvements in Godot 4

    • @SheepUndefined
      @SheepUndefined Před 10 měsíci

      Gdscript is an interpreted language, so there's always going to be a small overhead involved with that that isn't present in C#. I don't see it overtaking C# any time soon, but with the new changes, gdscript is fine for most instances.

  • @freepik19nineteen2
    @freepik19nineteen2 Před 11 měsíci +1

    Why did you left unity

    • @op2265
      @op2265 Před 11 měsíci +4

      Cause unity introduced runtime fees, so a lot of people are leaving unity

  • @JeffKomarow
    @JeffKomarow Před 11 měsíci

    🎉🎉🎉

  • @selimkaptan669
    @selimkaptan669 Před 11 měsíci

    👏

  • @tunvas
    @tunvas Před 11 měsíci +1

    you are fast

  • @daniyarm2922
    @daniyarm2922 Před 11 měsíci +3

    How infuriating this C# on Godot is ))

  • @SayedSafwan
    @SayedSafwan Před 11 měsíci

    we need GDscript

  • @Lansamatv
    @Lansamatv Před 11 měsíci +2

    please the tutorials in GDScripts please, can you make a tutorial on life bars, mana, exp, more in-depth on the topic of the UI please

  • @milivojesimonovic3942
    @milivojesimonovic3942 Před 11 měsíci +2

    Can you make more unity videos pls ?

  • @GloriousReign
    @GloriousReign Před 3 měsíci

    GD script is the way stop fighting it

  • @waleedsaeed8
    @waleedsaeed8 Před 11 měsíci

    Its not easy to start from beginning. Unfortunately they are going to pay whether they like or not. Its just matter of adjustment to the policy because its insane. Although 200K is too much for indie developer specially on game basis and not account. I will delete the game if it has 200K and problem solved LOL. Joking! What cents matters to U if U got 200K? Team Got no Excuses Too. They can make more games than individuals each year which means 200K * # "Each Year" which is insane too.

  • @johannes4510
    @johannes4510 Před 11 měsíci +5

    Visual Studio for the pros, Visual Studio Code for the noobs

    • @obinnaokafor6252
      @obinnaokafor6252 Před 11 měsíci +1

      You can use both for either hubby or professional.

    • @SheepUndefined
      @SheepUndefined Před 10 měsíci

      Visual Studio if you want your computer to hang a little every time you pull open a script.

    • @dad8102
      @dad8102 Před 4 měsíci

      Other way around