-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
c# Span struct not working #39410
Comments
I it’s probably because Godot is using .NET Framework for C# right now and when using C# 8.0 with .NET Framework not all new features are supported. |
@phelioz i hope this feature would be avaible in godot... |
@extremety1989 See godotengine/godot-proposals#793 and godotengine/godot-proposals#339. As it stands right now, I think it's better to document this (probably here). |
Yeah I agree it would be nice. Span combined with some unsafe code could probably remove the performance issues that currently come from the marshaling. Seems maybe we will get that in 4.0, hopefully. But until then I agree the documentation should be updated. |
Support for using You can manually change the TargetFramework to The supported C# version depends on the TargetFramework, some features are implemented as language features which means it doesn't need a newer framework to work, others need a newer framework to work. Which features require a newer framework is documented by Microsoft's documentation (in the Applies to section).
Also, since OP mentioned |
3.2 stable version
windows 10
at godot page they say " Full support c# 8 " in documentation c# 7
well i wanted to implement Span struct ,here is the link https://docs.microsoft.com/en-us/dotnet/api/system.span-1?view=netcore-3.1
The text was updated successfully, but these errors were encountered: