Godot Engine: Ignore the second method "UNUSED_ARGUMENT" warning

In "Godot Engine: how to shield some useless warnings" in one article, describes how to shield various warnings, including "UNUSED_ARGUMENT" warning, but this approach is for all GDScript script, if we just want to ignore certain "UNUSED_ARGUMENT" specific warning function, there are easier ways:
directly to your argument with an underscore "_" on it.

example:

extends Node
func _process(delta):
	pass

In fact, the following has been suggested that specific practices, really intimate! (New version add to the mix? I did not notice before)
Here Insert Picture Descriptionto the parameter deltaplus a "_" into _deltawarning disappears

extends Node

func _process(_delta):
	pass
Published 374 original articles · won praise 1001 · Views 160,000 +

Guess you like

Origin blog.csdn.net/hello_tute/article/details/104962691