How to add childrent node to Groups in C#

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By zhylaw
foreach (Node child in GetChildren())
    {
        child.AddToGroup("Enemies");
        GD.Print(child.Name + "\t" + child.IsInGroup("Ememies"));
    }

// Output: Label false.
// Output: Button false.

:bust_in_silhouette: Reply From: Zylann

You did a typo: it’s Enemies, not Ememies.