I have an object of type sprite. I would like to add a new field in the sprite object without deriving the class. I'm not sure is possible.
I tried to do
object.newField = 'value';
but it's not working.
I need it because the Api expect that field in the sprite class.