Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: secondsight on February 10, 2018, 09:42:28 PM

Title: How to count the amount of specific objects in the scene ?[SOLVED]
Post by: secondsight on February 10, 2018, 09:42:28 PM
As the title says. What is the easiest way to do this ? This must be quite trivial, right ?
Thanks for your time !
Title: Re: How to count the amount of specific objects in the scene ?
Post by: secondsight on February 11, 2018, 10:34:50 PM
Really no one knows that ? :)

Maybe point me a tutorial or the right entry in the manual. I try to understand arrays at the moment, but they seem "overpowered" for this simple task. Actually I need to find objects by string, I guess ? Because the objects I want to find will be generated and thus get a suffix of (1 clone).

I would really appreciate it. Still learning the basics here.
Title: Re: How to count the amount of specific objects in the scene ?
Post by: djaydino on February 12, 2018, 04:52:14 AM
Hi.
There is an action called "Get Child Count"

But you would need to drop everything into a parent (empty) object.

I can't find something useful also on the EcoSystem (https://hutonggames.fogbugz.com/default.asp?W1181)

So i build one for you, you can get it on the EcoSystem (https://hutonggames.fogbugz.com/default.asp?W1181)

Search for 'Scene Objects Count'

I also added an option to search by tag.
Title: Re: How to count the amount of specific objects in the scene ?
Post by: secondsight on February 12, 2018, 06:29:36 AM
Oh wow, great !
Thanks very much, that´s exactly what I was looking for.
So, there was nothing like this around then ? I´m sure it can become handy for a lot of things.