#can you save arrays with dynamic properties?
1 messages · Page 1 of 1 (latest)
1 messages · Page 1 of 1 (latest)
Yeah, absolutely. You can store anything that can be converted into a string in them using JSON.stringify and JSON.parse
const array = ["a","b","c"]
world.setDynamicProperty("test", JSON.stringify(array))
const arr = JSON.parse(world.getDynamicProperty("test"))
Vector3, Boolean, Number, String.
I ironically just shared an example with someone else just moments ago lol.