Original Post
I was just curious what methods people are using to store per-instance data for scripts. The way I did it in the past was that each script component for an object would have a map of string->floats and string->string and I just queried them from lua. It seems like it wouldn't scale very well though. Although if you used variants in your code for object properties, then I could see this working so well that the performance hit would be worth it, and there wouldn't be separation between script / code object data. Just curious how other people are doing it.