Allow C# scripts extending BTTask to be added in the behavior tree editor

This commit is contained in:
Serhii Snitsaruk 2023-09-16 13:22:09 +02:00
parent ff4991654f
commit a998b45341
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ _FORCE_INLINE_ void _populate_scripted_tasks_from_dir(String p_path, List<String
dir->list_dir_begin(); dir->list_dir_begin();
String fn = dir->get_next(); String fn = dir->get_next();
while (!fn.is_empty()) { while (!fn.is_empty()) {
if (fn.ends_with(".gd")) { if (fn.ends_with(".gd") || fn.ends_with(".cs")) {
String full_path = p_path.path_join(fn); String full_path = p_path.path_join(fn);
p_task_classes->push_back(full_path); p_task_classes->push_back(full_path);
} }