0 votes

I used Area_entered signal for checking collisions for the enemy with area2d node , but this error shows up. However, it does not make it crash or anything...
pls answer ..

W 0:00:00.901 The argument 'area' is never used in the function 'onArea2Dareaexited'. If this is intended, prefix it with an underscore: 'area'
<C++ Error> UNUSED
ARGUMENT

Enemy.gd:64
Godot version v3.2.3
in Engine by (15 points)

1 Answer

+2 votes
Best answer

That is not an error, it is a warning.

It means exactly what it says. You have a function _on_Area2D_area_exited() which has an argument area and you're not using that parameter.

If you're fine with this, change it to _area and you won't see the warning any more.

by (21,977 points)
selected by

THANK YOU ...

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.