r/howdidtheycodeit • u/kiwidog • Feb 15 '23
Question How do WYSIWYG editors sync data between controls
So I've been working on my own 3d editor, and I wanted to know how other editors such as Unity, Unreal, Hammer all sync data between their controls?
So if you moved an object in the 3d viewport, the properties window updates with the new coordinates, or vice versa. Or if you change a property, it updates in the 3d viewport, or whatever other editor there is open (materials, properties, 3d viewport, shader, kismet/nodegraph)
Thanks in advance. I've been thinking on many different ways, and all seem inefficient.
3
Upvotes
2
u/ACheca7 Feb 15 '23
Both change internally the actual properties. They’re just two kind of inputs to change properties. You can have an event after any change in the model that updates all the user interface.
3
u/[deleted] Feb 16 '23
i dont know if this is what you are looking for but you might take a look model-view-controller on wikipedia