Access to haxe trait variables through Blender UI?


Hi @lubos,

Is it possible to access variables in the haxe traits through the Blender UI somewhere/somehow?

I was thinking something similar to how you can do in many other engines where you mark a variable as being accessible through the UI/inspector by for example some meta data tag, or by making it public.

Kind Regards,



It is not yet implemented but I have been thinking about it for a while - looks like now is the time to handle it. I am preparing a coded variant of the tanks mini-game tutorial and it would be handy there too.

Created an issue:

Right now there is a way to send params to the constructor, but I will rework this like you suggested. That way it will also be clear which values are actually being set, show proper UI type, tweaking variables at runtimeā€¦