- Home /
How could I change the Drop-down List (NGUI UIPopup List) position or its parent?
I'd like to ask how to change the Drop-down List position.
I create a gameobject attached NGUI UIPopup List component. I've thought when that gameobject is tapped, a Drop-down List popup is created at the same hierarchy as the gameobject and suitable position. However, a Drop-down List popup is created at just below UIRoot (not same hierarchy as the gameobject), and its position is away from the gameobject.
Could I change Drop-down List popup position or how could I solve this problem? I use unity5.4.4p1 and NGUI 3.11.4.
Thank you.
Answer by hexagonius · Sep 22, 2017 at 08:26 AM
You'll have to contact the NGUI support for this one.
I'd like to do so, but I can't find the NGUI support. I tried to post this one at below, but I couldn't. http://www.tasharen.com/forum/index.php?board=1.0
Do you know how to contact the NGUI support?
Well, their forum should be the place. If you couldn't then I don't know.
Answer by chocochip150 · Sep 25, 2017 at 06:12 AM
Although it's temporarily, I've solved this problem.
At the Show() method in the UIPopupList.cs, the original code is as below.
var pTrans = separatePanel ? ((component)mPanel.GetComponentInParent() ?? mPanel).transform : mPanel.cachedTransform;
I've changed this code to as below.
var pTrans = mPanel.cachedTransform;
Then, a Drop-down List popup is created at the same hierarchy as the gameobject attached UIPopup List componnt and suitable position.
Your answer
Follow this Question
Related Questions
Dropdown menu(PopupList) 2 Answers
GUI Popup problem…! 1 Answer
NGUI: Draggable popup list 0 Answers
dropdown menu PopupList c# problem 3 Answers