I’m toying with the impressive PCUI library, combining it with React.
I’m having some trouble two-way data-binding a <VectorInput> via an Observer object. It seems I have to represent a Vec3 as a string "[1, 2, 3]" in the Observer object, for the <VectorInput> to show its values. But when I type in new values in the browser, it apparently changes the property in the Observer’s .json() to an object type. { 0: 1234567 }
String in becomes object out - maybe an array type? I’m not sure.
Been looking through the PlayCanvas Viewer project, but can’t find any examples binding from VectorInput to Observer object.