erro func _physics_process(delta)

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Jonasga

Oque posso fazer para resolver esse erro:

func _physics_process(delta):
pass

erro:

The argument ‘delta’ is never used in the function ‘_physics_process’. If this is intended, prefix it with an underscore: ‘_delta’

Se eu escrever assim o codigo que está dentro não funciona:

func _physics_process(_delta):
pass

:bust_in_silhouette: Reply From: exuin

That is not an error. That’s a warning. There isn’t anything you need to do. I’m not sure why the code inside doesn’t work if you change it _delta. Maybe you’re still using delta inside the function and didn’t change that?

If you want to turn off the warning, go to Project Settings → Debug → Gdscript and uncheck “unused argument”.