Support signals and callables in exposed dictionaries

This commit is contained in:
Jummit 2023-01-20 16:32:16 +01:00
parent 14fdd28de9
commit 18e4b06162
1 changed files with 8 additions and 0 deletions

View File

@ -1051,6 +1051,14 @@ void EditorPropertyDictionary::update_property() {
case Variant::RID: {
prop = memnew(EditorPropertyRID);
} break;
case Variant::SIGNAL: {
prop = memnew(EditorPropertySignal);
} break;
case Variant::CALLABLE: {
prop = memnew(EditorPropertyCallable);
} break;
case Variant::OBJECT: {
if (Object::cast_to<EncodedObjectAsID>(value)) {