![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
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?
![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
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?
![]() |
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