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
Make Node.get_node()
pause editor execution if it can't find the node
#1729
Comments
I think we should just make If you're not sure whether the node exists, use |
get_node()
pause editor execution if it can't find the node
get_node()
pause editor execution if it can't find the nodeNode.get_node()
pause editor execution if it can't find the node
When reading this proposal a second time, I realized it's about something different entirely. According to OP, Either way, this should be addressed in a different pull request. |
So I close this? |
@ShalokShalom I'll keep it open, as I think this proposal is still relevant. |
Describe the project you are working on:
Applies to all projects, GDScript.
Describe the problem or limitation you are having in your project:
Get_node can get the current node on an empty NodePath
Lots of bugs and confusion behavior occurs because of that.
Describe the feature/enhancement and how it helps to overcome the problem or limitation:
Yield an error, instead of accepting confusing behavior
Describe how your proposal will work, with code, pseudocode, mockups, and/or diagrams:
Already implemented: https://monnef.gitlab.io/golden-gadget
If this enhancement will not be used often, can it be worked around with a few lines of script?:
No
Is there a reason why this should be core and not an add-on in the asset library?:
This is similar to the nil issue and solved in some way that is always beneficial and never technically disadvantageous.
The text was updated successfully, but these errors were encountered: