An object counter

I want something that can detect how many objects there are in a row. Such as a ray-cast that counts objects.

1 Like

Just make a global id increase once for each object.

1 Like

How would that work exactly? Just add one when they’re triggered, and when they’re untriggered remove it?

2 Likes

Once → (get) number [one] → +(global)

Add -1 to undo it.

2 Likes

You can also do this with the Proximity behavior