When I checked Show Ok Button and Show Cancel Button in Quantity Selections and selected the UI Box with Ok and Cancel Button (UI Box Beige), I found that these two buttons did not appear. Am I mistaken about something?
(Use the 3D RPG Playground tutorial project.)
  • Sorry for one more question, I noticed that Shop Layout Settings -> Auto Close Buy doesn't seem to work, the shop UI doesn't close automatically when I bought all items in the shop. Am I configured something incorrectly?
  • Hm, working fine here.
    Make sure your UI box prefab has the ok/cancel buttons set up correctly, i.e. the buttons are added to the prefab, visible and also set up in the UI Box component.

    The Auto Close Buy will close out of the item selection if no items are left to purchase, i.e. the shop is empty. Naturally, this only works if you use limited item quantities in your shop.
    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!
  • Thank you for the reply.

    I checked carefully and both Ok and Cancel Button are set correctly.
    Maybe I did something which polluted the project, so I downloaded the latest tutorial project, but the problem remained. Then I updated unity from 2021.3.9f1 to 2021.3.15f1, the problem is still the same...
    Could you help me, I really spent a lot of time without finding the reasons for the problem...

    https://firestorage.jp/download/ef3c096fc728cf7649396538e595a21688f035cf

    (The ORK version in the download link is the trial version, but replacing it with the Full version results in the same thing)
  • edited December 2022
    Ah, forgot that you have to disable Hidden By Inputs on the ok/cancel button's UI Button (Ok, Cancel) components. When enabled, the buttons will automatically be hidden if the UI box displays any inptus (e.g. the quantity input).

    The Auto Close Buy seems to be a bug - while it closes the shop's item selection, the inventory change from buying/selling automatically refreshes the UI and shows it again. Will be fixed in the next update.
    Post edited by gamingislove on
    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!
  • Ah, that solved the problem! Thank you so much for your help!!
Sign In or Register to comment.