Skip to content

Commit fdd20e5

Browse files
committed
Fixed issue with strings being displayed incorrectly by cs_evaluate.
1 parent ebb6a6b commit fdd20e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Runtime/DevConsoleMono.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2204,7 +2204,7 @@ void logChildren(GameObject obj, int tabAmount)
22042204
return;
22052205
}
22062206

2207-
if (typeof(IEnumerable).IsAssignableFrom(result.GetType()))
2207+
if (result.GetType() != typeof(string) && typeof(IEnumerable).IsAssignableFrom(result.GetType()))
22082208
{
22092209
Log($"{{ {string.Join(", ", ((IEnumerable)result).Cast<object>())} }}");
22102210
return;

0 commit comments

Comments
 (0)