Closed tufcode closed 11 months ago
Hi @tufcode, can you share your project with me? I couldn't reproduce it here:
this.state.gameObjects.push(new GameObject().assign({ value: "One" }));
this.state.gameObjects.push(new GameObject().assign({ value: "Two" }));
this.state.gameObjects.push(new GameObject().assign({ value: "Three" }));
this.state.gameObjects.push(new GameObject().assign({ value: "Four" }));
// clearing messages
this.clock.setTimeout(() => {
this.state.gameObjects.clear();
this.state.gameObjects.push(new GameObject().assign({ value: "Five" }));
this.state.gameObjects.push(new GameObject().assign({ value: "Six" }));
}, 2000);
DEBUG:SCRIPT: added One
DEBUG:SCRIPT: added Two
DEBUG:SCRIPT: added Three
DEBUG:SCRIPT: added Four
DEBUG:SCRIPT: removed One
DEBUG:SCRIPT: removed Two
DEBUG:SCRIPT: removed Three
DEBUG:SCRIPT: removed Four
DEBUG:SCRIPT: added Five
DEBUG:SCRIPT: added Six
on_remove
never gets called after the first remove.Schema
Room (on simulation tick)
Client
Result