That's right. You have to do it like this:
myNode2D.Position = new Vector2(100, 100);
That's because Position is a Property and not a public field.
public Vector2 Position { get; set; }
The property does the same like this:
private Vector2 _position;
public Vector2 GetPosition()
{
return _position;
}
public void SetPosition(Vector2 position)
{
_position = position;
}
GetPosition().x = 4711 gives me the same error.