Skip to content

Commit

Permalink
make button input have name
Browse files Browse the repository at this point in the history
  • Loading branch information
misternebula committed Feb 20, 2024
1 parent 30cc28e commit 54a0c6e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
@@ -453,6 +453,7 @@ public SubmitAction CreateButton(Menu menu, string buttonLabel, string tooltip,
var newButtonObj = Object.Instantiate(existingButton);
newButtonObj.transform.parent = GetParentForAddedElements(menu);
newButtonObj.transform.localScale = Vector3.one;
newButtonObj.name = $"UIElement-Button-{buttonLabel}";

// the thing we're copying is already LEFT, so dont need to handle it
if (side == MenuSide.CENTER)

0 comments on commit 54a0c6e

Please sign in to comment.