Under cocos2d-x + Lua, how to know what class a Lua object corresponds to C + +?

Time:2020-10-31
print(tolua.type(obj))

That’s it. Small skills, save a lot of time, you don’t have to guess blindly in the future, especially when using various widgets on the UI side.