-
-
Notifications
You must be signed in to change notification settings - Fork 23.7k
Closed
Milestone
Description
Godot version
4.0-beta16
System information
Windows 10
Issue description
When I try to add a node to a group, by calling function add_to_group() in a @tool script, the group is assigned but is not showing at the editor.
@tool
extends Node
func _enter_tree():
print("Adding to group test")
add_to_group("test")
notify_property_list_changed()
print("Groups: ", get_groups())
func _ready():
add_to_group("test2")
print("Groups: ", get_groups())
passNote: If I try to add manually, it works fine.
Steps to reproduce
- Create a new node
- Create a new script to the node
- Add @tool to the script
- Call function add_to_group() inside _enter_tree() or _ready()
Minimal reproduction project
N/A
Zireael07, Mickeon, dodgyville, FilipLundby and cschar




