Search Unity

Use interface menu multiple times?

Discussion in 'UIElements' started by Terotox, May 25, 2019.

  1. Terotox

    Terotox

    Joined:
    Apr 1, 2019
    Posts:
    18
    hey community:)

    I‘ve got kinda little question about UI that popped up when i was working on my project today.

    For now I am using my menus multiple times. So in my medieval economy sim it doesnt matter which building i access there is always the same UI menu opening (by setActive).
    I have a dropdown menu inside that holds all available products that can be produced in that kind of building.
    If i close it and go for another building thats owned my the player I add other product options to the dropdown menu...
    And so on, i hope you got it.

    So my question now-> is this really good the way I am doing this?
    Or shall there be different UIs for every Building/every GameObject so far?

    I searched the internet but i guess the question is pretty special.
    I work with setActive and use my UIs for all objects where i need them. But I am kind of afraid of getting to a point where i recognize that this isnt the way it has to be done.

    So are there any good advice about that topic?

    Thanks so far!
     
  2. uDamian

    uDamian

    Unity Technologies

    Joined:
    Dec 11, 2017
    Posts:
    299
  3. Terotox

    Terotox

    Joined:
    Apr 1, 2019
    Posts:
    18
    Ah thank you for advice!