Skip to content

Commit

Permalink
change localrotation of button with label
Browse files Browse the repository at this point in the history
  • Loading branch information
misternebula committed Mar 19, 2024
1 parent 82258cf commit b904dde
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,7 @@ public SubmitAction CreateButtonWithLabel(Menu menu, string label, string button
var newButtonObj = new GameObject($"UIElement-{label}");
newButtonObj.transform.parent = GetParentForAddedElements(menu);
newButtonObj.transform.localScale = Vector3.one;
newButtonObj.transform.localRotation = Quaternion.identity;

var layoutElement = newButtonObj.AddComponent<LayoutElement>();
layoutElement.minHeight = 70;
Expand Down

0 comments on commit b904dde

Please sign in to comment.