Any way to view tables in the in-game developer console?

Hi,
The table outputs turn out to be encoded in the in-game developer console. Is there any way to view the tables’ output the way studio shows with the “log mode off” setting?
Example:
[1] = Apple
[2] = Bread
[3] = Cat
Instead of:

No, the most you could do is print all the indices and their keys along with tabbing to make it look like studio’s way, but it’ll still end up expanded with no way to collapse entries (unless there’s something i don’t know)

Unless you really want to, then you could make your own console UI with those features

1 Like

Linus is right, this is about as good as you can do:

local function recursivePrint(x, k, spacing)

	spacing = spacing or ""

	if type(x) ~= "table" then

		print(`{spacing}[{k}] = {x}`)

		return
	end
	
	print(spacing .. (k and `[{k}] = ` or "") .. "{")

	for k, v in pairs(x) do recursivePrint(v, k, spacing .. "  ") end

	print(spacing .. "}")
end
1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.