Godot C# Tips and Tricks

Поділитися
Вставка
  • Опубліковано 21 лис 2024

КОМЕНТАРІ • 27

  • @beidero
    @beidero 2 роки тому +27

    Nice to find another godot C# dev, seems there aren't that many of us around (at least not on youtube). Some interesting ones there, I was actually going to make almost the same video. I already started on an updated "How to install C# and Godot video" and was going to follow it up with a tips and tricks video. I think the only overlap I have with yours is extention methods.
    Other things I find extremely useful in C# is,
    * NuGet (json parsers, database connections, libraries, etc...)
    * Reflection (man I use this everywhere, I made a JSON editor that uses reflection to parse my data classes by reading annotations and automatically builds a editor GUI for me. Much faster than keeping tools up to date or using other editors. For instance it can restrict values based on enums with a single annotation. Oh and it's open source :D). I got a video from an old version on my channel called "C# JSON editor directly integrated into godot".
    * Properties (you partially covered it, but just having a property with a get method that loads data on demand can be very useful. Specially if you got something like a json file that references another json file, just make a get method that will resolve the reference when needed)
    * Default parameters and overloading
    * delegates / events
    * Generic methods
    And so many more things.

  • @seoulpeterson432
    @seoulpeterson432 2 роки тому +5

    C# Godot content would be fantastic.

  • @gfh4et5dsf4est4
    @gfh4et5dsf4est4 2 роки тому +11

    Definitely appreciate the c# tutorials. Could you do a tutorial on how you have your animations setup, the procedural ones without having sprite sheets in your shooter GunGame?

  • @shortguy014
    @shortguy014 2 роки тому +10

    The Node attribute should honestly be standard in the engine.

  • @RosaliaEmerald
    @RosaliaEmerald 2 роки тому +3

    This is so great! Please keep up with Godot C# tutorials.

  • @DerWenzel
    @DerWenzel 6 місяців тому +1

    Still one of the best videos for c# beginners. Short informative and well made. Thanks!

  • @amyAlert
    @amyAlert Рік тому +1

    this is one of the most concise and well explained videos i've ever seen on godot, let alone c#. really good stuff :]

  • @Tomsudobrej
    @Tomsudobrej 2 роки тому +1

    It's relatively rare to see Godot C# tutorials, always appreciated! :)

  • @kahrvee2148
    @kahrvee2148 2 роки тому +2

    I am primarily a c# dev and Godot 4 brings very interesting new features. Would love to see more godot c# tutorials!

  • @rechnight
    @rechnight 7 місяців тому

    Great video!!! I have a question on your Utilities: What does the Scene attribute do in the Source Generator?

  • @GustafLindqvist
    @GustafLindqvist 2 роки тому +1

    Great video! Feels like this type of videos is important to make the community support growth of C# and Godot!

  • @patrickrainer2507
    @patrickrainer2507 2 роки тому +1

    great stuff mate. the web lacks on good documentation of c# in godot

  • @indiegrend2930
    @indiegrend2930 2 роки тому +1

    Great video please do more c# related tutorials!

  • @luckyknot
    @luckyknot 11 місяців тому

    This are some cool tips, I liked the Refernce one specially, thanks for sharing your utilities sir!

  • @malavidra
    @malavidra Рік тому +1

    Great video! What would be the equivalent for extending Reference to pass custom objects as arguments in Godot 4.0?

    • @FirebelleyGames
      @FirebelleyGames  Рік тому +1

      Same concept but it's called "RefCounted" now 👍

  • @rightanglegames
    @rightanglegames 2 роки тому +1

    Thanks a lot for the great video! Lots of helpful tips! I still don't know how to build the library after cloning the repository (I'm coming from the dark Java side...). Do I need to build the lib with VisualStudio or Visual Studio code? Do I need to download nuget separately? I would love to use your node wiring mechanism, especially now that I learned that I can wire the nodes directly after instancing the objects!

    • @FirebelleyGames
      @FirebelleyGames  2 роки тому

      If you have dotnet installed (which you should if Godot mono builds work correctly)
      You can do "dotnet build -c Release" and that will build the nupkg file which you can include in your project. You'll need to probably do some configuration for local nupkg files. More here stackoverflow.com/questions/10240029/how-do-i-install-a-nuget-package-nupkg-file-locally
      Sorry it's so convoluted!

  • @treysonsearle8441
    @treysonsearle8441 2 роки тому +3

    More c#!!!

  • @learningchannel3850
    @learningchannel3850 Рік тому

    Maybe someone can help me with something. I tried working with the "create your first 2d game". The issue I had with it is it keeps giving me an error about top level statements. I am new to all this and is there a way to turn it off? How do I format my code differently? It's just frustrating

  • @bjyxmas1
    @bjyxmas1 Рік тому +1

    Does "NotificationInstanced" only exist on godot 3? I couldn't find it on my godot 4 project.

    • @bjyxmas1
      @bjyxmas1 Рік тому

      It looks like renamed to "NOTIFICATION_SCENE_INSTANTIATED"

    • @FirebelleyGames
      @FirebelleyGames  Рік тому

      It's now "NotificationSceneInstantiated" in Godot 4 I believe

  • @antonsimkin
    @antonsimkin Рік тому

    how to watch methods speed in visual studio?

  • @KennyLachs
    @KennyLachs 2 роки тому +2

    pls more!!!!