Delete/Leave a group

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

I add my Player to a group:

func _ready():
    add_to_group("Player")

How can I delete the group per code or leave a group per code?

:bust_in_silhouette: Reply From: jgodfrey

You can remove a node from a group via:

remove_from_group("theGroup")

Thanks, that is exactly that what I need!

Godot_Starter | 2020-03-16 21:22