Transformable.Position must be field
PickGG opened this issue · 2 comments
PickGG commented
charleyah commented
This is because Position is a struct and returned by a property which are usually preferred. You need to use a local variable of Position to modify individual members.
var rect = new RectangleShape();
var pos = rect.Position;
pos.X = 455.67;
pos.Y += 12424.67;
rect.Position = pos;
LaurentGomila commented
Don't forget that SFML.Net is a binding, not a native C# library.