I try to find a node that can return the length of a list and can’t find anything useful :-/
My flow instantiate gameobjects on a trigger but I don’t want them to exceed a certain number. I list before the creation with a GameObject find with tag node (that works great) the complete gameobjects but after I can’t figure how to get the size of that list. Is there a simple way ? (I am really bad at coding by the way..)
If you have a node with a list or array output, you can drag and drop the output in the canvas and from the menu that will pop up, search and select the Get Count property (for lists), or the Get Length property (for array).
The Find GameObjects With Tag returns an array, so you will want to use the Array Get Length property node.