I have a doubt about angelscript that I need to clarify.
For lightweight classes which are efficiently passed by value, is there a way to still store handles to the object?
Explaining with an example: I have a Sprite class which is quite simple, having only a few members. I registered this as a Ref type because i wanted to pass it around through functions, modifying the original instance.
However, such a lightweight class could fit well as a value type , I believe... But if I do that, I am not sure I can still pass a sprite to a function(in-script) and modify the original Sprite object rather than its copy. Or can I?
Thanks in advance.