Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Wibbly |
I am creating a game with chunk based generation like in Minecraft (but in 2D). I decided to change that part of the code to C# so I could get some performance improvements and use Threads in C# so I can make the process feel a bit smoother in-game.
I’m experienced with C#, but never used it with Godot.
There’s a part in my GDScript code where I store all my Player instances so I can get some info about their current chunk later (I use class_name Player).
Problem is: How can I do that in C#? Can you reference a .gd “class” type the same way you can do it inside GDScript? I’m using Visual Code.