Hi!
I tried changing the text in a TextV2 object, but was not successful. I am using the websocket API, and the connection works, I’m able to listen to events, get objects details, etc. I noticed, on the browser console, that the text object has a property “text” with a “text” field inside, where the actual data that’s shown is present. But, on the API, this doesn’t appear on the MapObject. I tried doing the following, but wasn’t successful, nothing happened:
this.game = new Game(SPACE_ID, () => Promise.resolve({ apiKey: API_KEY }));
this.game.connect();
this.game.subscribeToConnection(async (connected) => {
console.log("Connected to Gather", connected);
await this.game.waitForInit();
await this.game.updateObject("bG_-YwCP495tSI48geWzu", "F8Qu", { text: { text: "Hello World" } }, true)
});
}
Are there any ways I could do this? It would be awesome to change a text on our office dynamically, to show progress to our team through it.
Thank you!