rdeioris / LuaMachine

Unreal Engine Plugin for Lua APIs implementation
MIT License
581 stars 120 forks source link

Is there a way to get the actual table reference string? #9

Closed mp-pinheiro closed 4 years ago

mp-pinheiro commented 4 years ago

Hi! First of all, amazing plugin!

When casting a table to string and printing I get something like table: 5, which appears to be the registry entry id of the table, which is changeable, if I understand this correctly.

Is there a way to get the table: 00AFA376 string? I have a table indexed table that I'm trying to reflect as a String to Blueprint map.

Thanks again!

rdeioris commented 4 years ago

Hi, thanks for the suggestion, indeed accessing low-level pointers could be a really useful feature. Please clone the lastest master, you will find two new functions: LuaValueToPointer (returns int64) and LuaValueToHexPointer (returns FString).

mp-pinheiro commented 4 years ago

This is perfect! Thanks a lot for the swift response and even swifter feature implementation!