-
-
Notifications
You must be signed in to change notification settings - Fork 22k
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
ERROR: Invalid call. Nonexistent function 'get_navigation_map' in base 'Godot.NavigationLink2D'. #101047
Comments
The setters and getters aren't available in C#, you need to do: navigationLink2D.NavigationMap = myMap; See the documentation page C# differences to GDScript |
@AThousandShips thanks for the response. i'd like to clarify that the setter is not available in gdscript either. trying with the property syntax is same result: ![]() |
This API was added in 4.4: I guess the stable documentation includes this because the PR was cherry-picked for 4.3.1, but this version hasn't been released yet. |
Indeed, that seems to be the case. CC @mhilbrunner - we should maybe only sync classref on stable branches on the latest tag in the given branch, if we can find this info from GitHub's API. |
@raulsntos @akien-mga any guidance on how to set the navigation map on a NavigationLink2D for <v4.4? |
My bad missed that this was indeed a method and not a property, but missed it wasn't in 4.3, good catch You will be able to use it when 4.3.1 releases! You might also be able to set it using the server, using the RID of the link |
Tested versions
v4.3.stable.mono.official [77dcf97]
System information
Godot v4.3.stable.mono - macOS 13.7.2 - GLES3 (Compatibility) - AMD Radeon Pro 560 OpenGL Engine - Intel(R) Core(TM) i7-7820HQ CPU @ 2.90GHz (8 Threads)
Issue description
According to NavigationLink2D documentation, we should be able to call
set_navigation_map
to set the RID of map the link should be active in.However this method is not available in C#:
When calling with
.Call
i'm getting following errors:
Steps to reproduce
Minimal reproduction project (MRP)
N/A
The text was updated successfully, but these errors were encountered: