Godot C# Tips and Tricks

Поділитися
Вставка
  • Опубліковано 30 чер 2024
  • Godot Utilities: github.com/firebelley/GodotUt...
    📖 Learn Godot with my Udemy course!
    www.udemy.com/course/create-a...
    🎮 Pick up one of my games on Steam!
    store.steampowered.com/search...
    store.steampowered.com/app/13...
    firebelley.itch.io/sword-slinger
    ➡️ Follow me on Twitter! / firebelley
    ➡️ Steam: store.steampowered.com/search...
    ➡️ Itch.io: firebelley.itch.io/
    #Godot #gamedev
    00:00 Intro
    00:04 Send custom objects as signal arguments
    00:37 Run toolscript code manually
    01:17 Extension Methods
    02:16 Custom script template
    02:39 The "is" keyword
    03:15 Ignore signal arguments
    03:27 Override ToString()
    03:44 Godot Utilities
    04:39 Conclusion
  • Наука та технологія

КОМЕНТАРІ • 27

  • @beidero
    @beidero Рік тому +25

    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.

  • @DerWenzel
    @DerWenzel Місяць тому +1

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

  • @seoulpeterson432
    @seoulpeterson432 Рік тому +4

    C# Godot content would be fantastic.

  • @gfh4et5dsf4est4
    @gfh4et5dsf4est4 Рік тому +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?

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

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

  • @RosaliaEmerald
    @RosaliaEmerald Рік тому +3

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

  • @amyAlert
    @amyAlert 8 місяців тому +1

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

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

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

  • @kahrvee2148
    @kahrvee2148 Рік тому +2

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

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

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

  • @shortguy014
    @shortguy014 Рік тому +8

    The Node attribute should honestly be standard in the engine.

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

    Great video please do more c# related tutorials!

  • @rechnight
    @rechnight 3 місяці тому

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

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

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

  • @treysonsearle8441
    @treysonsearle8441 Рік тому +3

    More c#!!!

  • @rightanglegames
    @rightanglegames Рік тому +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  Рік тому

      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!

  • @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 👍

  • @KennyLachs
    @KennyLachs Рік тому +2

    pls more!!!!

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

    how to watch methods speed in visual studio?

  • @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