API tag "customluastate" is used on some methods, but nowhere is it explained what that means

I was on the page for BasePart and noticed the method for GetMass was marked “customluastate”.

image

I used the search and found this is used in many places, like CreatePlugin and GetDescendants, but I can’t find a pattern as to what it could mean. Hovering over “customluastate” should show what it means.

6 Likes

The rest of the tags should also show what they mean, as I don’t think this is a thing currently.

1 Like

This tag is exposing an implementation detail of our reflection system, and is probably used by IX team to make sure that the documentation for those functions is correct.

Specifically, these are methods which bypass our reflection system and directly use the Lua C API for performance or other reasons. The type signatures on them are purely for documentation purposes, so we have to manually keep them in sync with the method’s true behavior.

4 Likes

Not sure I entirely understand this explanation, any chance you could write a pseudo code example or explain it in simpler terms?

1 Like

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