Add PropertyInfo overload for GLOBAL_DEF

This commit is contained in:
kobewi 2022-11-08 19:53:22 +01:00
parent 05097ded0a
commit 7c6b659bd7
25 changed files with 172 additions and 446 deletions

View file

@ -1059,7 +1059,7 @@ void PhysicsServer3DManager::on_servers_changed() {
for (int i = get_servers_count() - 1; 0 <= i; --i) {
physics_servers2 += "," + get_server_name(i);
}
ProjectSettings::get_singleton()->set_custom_property_info(setting_property_name, PropertyInfo(Variant::STRING, setting_property_name, PROPERTY_HINT_ENUM, physics_servers2));
ProjectSettings::get_singleton()->set_custom_property_info(PropertyInfo(Variant::STRING, setting_property_name, PROPERTY_HINT_ENUM, physics_servers2));
}
void PhysicsServer3DManager::_bind_methods() {