Open menip opened 5 years ago
Seems would have to change all
add_custom_type(
"Behavior*",
"Node",
preload(script),
preload(png)
)
to a single
add_custom_type(
"BehaviorTree",
"Node",
preload(script),
preload(png)
)
and for all the rest
add_custom_type(
"Behavior*",
"BehaviorTree",
preload(script),
preload(png)
)
Not 100% as haven't used this part of engine yet.
@menip I just tried what you suggested and it did not work. The other "BehaviorTree" types just never show up. Got any other ideas?
I thought this was a limitation in godot for custom nodes (memory from 1+ year ago)
Related: https://github.com/godotengine/godot/issues/29548
This will probably be fixed with the joining of class_name
and add_custom_type()
Would be nice to have all extend something common, so that in "Create New Node" we don't get: