Is there a way for me to do a check via an ActionList that would allow me to check whether there are a certain amount of visible elements in a Unity UI menu before deciding on what it should do next? (e.g. if there are less then 10 elements visible in that menu then run another ActionList).
I know there's an ActionList option that can check the number of slots but it doesn't quite do what I need it to do as it requires the element name and using something like an inventory with slots wouldn't work for this.
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
You can do this with a custom Action.
For a specific Menu, you can get the number of visible elements with:
In an Action:
Thanks Chris, this seems just what I need, but I need it to check if the amount of visible elements are less than a certain number, so how would I go about that?
Replace
>=
with<
, or just use the "If condition is not met" output socket.