Ingame property editor

Hello,

I am building my game’s editor inside my game itself. What I now need to do is think up an elegant way to edit self.variables on game objects by mirroring them with (very) basic GUI properties.

So basically if I add a new self.variable to a gameobject, my GUI for the editor should update to show that property in editable format.

I’d likely only need things like vector3, float, bool, perhaps a string… regular stuff.

Wondered if there’s an elegant way to do this that won’t require me coding a new GUI element every time I add a gameobject scoped self variable.

1 Like

I guess there are no direct way.
You can archive that by create a lua module with a method covering go.property() and register its name, value, script context instance… to use for your game editor

2 Likes