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 - Наука та технологія
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.
This aged well
Still one of the best videos for c# beginners. Short informative and well made. Thanks!
C# Godot content would be fantastic.
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?
It's relatively rare to see Godot C# tutorials, always appreciated! :)
This is so great! Please keep up with Godot C# tutorials.
this is one of the most concise and well explained videos i've ever seen on godot, let alone c#. really good stuff :]
Great video! Feels like this type of videos is important to make the community support growth of C# and Godot!
I am primarily a c# dev and Godot 4 brings very interesting new features. Would love to see more godot c# tutorials!
This are some cool tips, I liked the Refernce one specially, thanks for sharing your utilities sir!
The Node attribute should honestly be standard in the engine.
I agree!
Great video please do more c# related tutorials!
Great video!!! I have a question on your Utilities: What does the Scene attribute do in the Source Generator?
great stuff mate. the web lacks on good documentation of c# in godot
More c#!!!
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!
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!
Great video! What would be the equivalent for extending Reference to pass custom objects as arguments in Godot 4.0?
Same concept but it's called "RefCounted" now 👍
pls more!!!!
how to watch methods speed in visual studio?
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
Does "NotificationInstanced" only exist on godot 3? I couldn't find it on my godot 4 project.
It looks like renamed to "NOTIFICATION_SCENE_INSTANTIATED"
It's now "NotificationSceneInstantiated" in Godot 4 I believe