Hello,

I'm using a menu screen with the combatant menu part. Currently I have a schematic for the UI box After open Schematic. This schematic disables a child (A menu part "Combatant") in the menu screen. [This is done using the Activate object -> Set active unchecked.] I have a button that enable and disable this menu part.

When I have the schematic running when opening the menu screen, the sorting that I have setup, does not work. It opens up, it does show all the sorting options but when clicking on an option, it does not sort the combatants. When I do disable the activate object node, it works just fine. Is there anyway I can fix this or a workaround that I can use?

EP
  • Hm, hard to say - generally it should be independent from enabling or disabling some game object. Can you give me more details on the structure of your UI box prefab where that happens?
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • edited November 27
    Hi GIL, thanks for replying.
    I was working on recording a video for you and found out that weirdly enough, the sorting doesn't work when I normally open it for the first time, but when I do open and HAVE TO close the window it tends to work. If I open it and not close the window and close the menu screen, and then reopen it again, it doesn't work.

    https://streamable.com/wgq5dq

    sorting-bug

    EP
    Post edited by EtherealPlayer on
  • Based on the video and screenshot ... you're basically completely disabling all content in the UI box (since all seems to be child objects of 'Main Content' that you disable), which will break/cut off most of the functionality. So, don't do that :)

    What's the intention behind doing this in the first place?
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • edited November 27
    I simply wanted the UI to look more clean, by using a button to enable and disable the children content, it can keep all the combatants hidden (If the player has more than 3 [This video is a bad example since there's only 3]).
    I have this method done in a lot of my menu screens and never had an issue. I've just started using sorting and bumped into this issue.

    I always make sure not to disable the UI Box component. The "[Armory] All Menu User Container UI Box(Clone)" Is what holds the UI Box.

    EP

    Post edited by EtherealPlayer on
  • I got it working! By applying the same rule to the UI Sorting dropdown input component (Not disabling it). In this case move the component "UI Sorting dropdown input" to the parent, it is now working as intended.

    Thanks for the help and brainstorm.

    EP
Sign In or Register to comment.