Skip to content

Commit

Permalink
fix position of selector inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
misternebula committed Mar 19, 2024
1 parent f4ed545 commit 1912e30
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,8 @@ public IOWMLOptionsSelectorElement AddSelectorInput(Menu menu, string label, str
.Find("UIElement-ControllerProfile").gameObject;

var newSelector = Object.Instantiate(existingSelector);
newSelector.transform.localPosition = Vector3.zero;
newSelector.transform.parent = GetParentForAddedElements(menu);
newSelector.transform.localPosition = Vector3.zero;
newSelector.transform.localScale = Vector3.one;
newSelector.transform.name = $"UIElement-{label}";
newSelector.transform.localRotation = Quaternion.identity;
Expand Down

0 comments on commit 1912e30

Please sign in to comment.