Hello,
I try to change x property using Reflect.setField()
Reflect.setField (this.sprite, "x", 200);
but it doesn’t work
Thanks
Hello,
I try to change x property using Reflect.setField()
Reflect.setField (this.sprite, "x", 200);
but it doesn’t work
Thanks
Why not simple?
sprite.x = 200;
You should use setProperty /
Reflect.setProperty(this.sprite, “x”, 200);
It’s because Haxe getters and setters are not real fields, it actually is “get_x” or “set_x”