FindObjectsOfType<GameObject>().Length;

I am looking for something very simple but can’t find it in the fuzzy finder.
“FindObjectsOfType().Length;” I can not find the .length version any advice?

Try the List Count node, it should auto cast to an array list and get what you need. Visual Scripting doesn’t support arrays natively but you can use most list nodes to operate with arrays.

1 Like