Skip to content

Commit e04e0ca

Browse files
committed
Fixed a GButton pivot issue.
1 parent a9e1b10 commit e04e0ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/Scripts/UI/GButton.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ override public void ConstructFromXML(XML cxml)
443443
_downEffect = str == "dark" ? 1 : (str == "scale" ? 2 : 0);
444444
_downEffectValue = xml.GetAttributeFloat("downEffectValue");
445445
if (_downEffect == 2)
446-
this.SetPivot(0.5f, 0.5f);
446+
this.SetPivot(0.5f, 0.5f, this.pivotAsAnchor);
447447
}
448448

449449
_buttonController = GetController("button");

0 commit comments

Comments
 (0)