How can I change a gameobject's position, rotation, and scale from a jslib?

I want to do something similar to what is explained on this post . However, instead of a shared array, I’d like to do something more complex. It would be a shared GameObject instead of a shared float. And I’d access this game object on the jslib to change its transform’s position, rotation, scale. I know how to get the values from the jslib and change the game object from the C# side, but I want to do it from the jslib, if that’s at all possible. Thanks!

When I have more complex data then ints, floats or strings, I simply use json serialized objects. So create an Object with the values you want to change, serialize it to a string, and deserialize it on the other end to your object type again (you need to have a similiar class/object on the Javascript side and on the C# side)