- Home /
Solutions for dynamic interface
After reading the documentation, I decided to take advice. I boot menu interface elements created and populated with data from the database. I have previously worked with html and naively hoped for such behavior of the elements of unity, but it turned out otherwise. The elements are created as children remain in the hierarchy and reload the menu, they are again. How to solve this problem with minimal costs?
IDataReader reader = db.getCurrentIslandTradeContentByZone();
while (reader.Read())
{
Transform g = (Transform)Instantiate(_pfb_Buy, _pfb_Buy.position, _pfb_Buy.rotation);
g.transform.parent = _parent_link;
g.transform.localScale = new Vector3(1, 1, 1);
}
This is an example of how to create Startup menu items.
Your answer
![](https://koobas.hobune.stream/wayback/20220613200044im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
[4.6 - UI] Changing the text component via script? 6 Answers
Recreate Unity Editor Window in Game 0 Answers
Script Two Button Functions At Once 1 Answer
Deactivate UI windows in order when "Escape" button is pressed. 1 Answer
Change the position of a UI component through pressing a UI Button 1 Answer