These two lines of code
local constants = render.constant_buffer()
constants.tint = self.back_tint
gives me the following warning in VSCode:
Fields cannot be injected into the reference of
userdata for
tint. To do so, use
—@class for
constants.
Is there a way to fix this warning? I don’t understand the suggestion…
Thanks!