godot-addons / godot-behavior-tree-plugin

Behavior Tree implementation for the Godot Engine as an addon in pure GDScript
MIT License
208 stars 19 forks source link

Plugin clutters "Create New Node" dialogue #20

Open menip opened 5 years ago

menip commented 5 years ago

Would be nice to have all extend something common, so that in "Create New Node" we don't get: image

menip commented 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.

FeralBytes commented 5 years ago

@menip I just tried what you suggested and it did not work. The other "BehaviorTree" types just never show up. Got any other ideas?

brandonlamb commented 4 years ago

I thought this was a limitation in godot for custom nodes (memory from 1+ year ago)

farfalk commented 3 years ago

Related: https://github.com/godotengine/godot/issues/29548

This will probably be fixed with the joining of class_name and add_custom_type()