void AnchorTypeChange() { if (sizeType == SizeType.Anchor) { GetParentInfo(); var au = ModelElement.AntiAnchorEx(transform.localPosition, anchorType, pp, psize); margin.left = au.x; margin.right = au.y; } lastAnchorType = anchorType; }