Property couldn't be of type table. The reason? (SOLVED)

#1

Hi there.

I had defined a property (of a game object) which is a Lua table:

go.property("tab", {})

And when I tried to get this property, I found it doesn’t exist. I have searched in the forum and now, I know that a property can never be a table (ref. Quesion A and Question B).

But why is that? What caused the property not to be a table?

Thank you!

0 Likes

#2

The supported property types are listed in the script properties documentation.

0 Likes

#3

I have asked for this numerous times, but it seems it is not as straightforward as it seems.
The idea is to be able to create custom panels to control the game and other aspects of it. So with a table you would get a drop down menu already populated, rather than having to type a string every time.

0 Likes