One more question.
I want to make several child plugins on the basis of my "unit" plugin, for example "player" and "enemy". How do I add child classes to the hierarchy so that they appear as inherited from the "unit" class?

Of course, I can leave them in the "kinematicbody2d" branch, but I would like it to be beautiful
func _enter_tree():
add_custom_type("Player1",
"KinematicBody2D",
preload("res://addons/player1/player1.gd"),
preload("res://addons/unit/ico_unit.png"))