I faced a problem when I wanted to change the content of a member variable in my script class.
This is my class:
class Foo
{
int baz1;
Bar@ baz2;
}
I can easily change value types in C++ by:
int* value = (int*)addressOfbaz1;
(*value) = 456;
But this doesn't work with object handles and I know why, but I don't know how I can alter the address that object handles are pointing to.