playMaker

Author Topic: How to count the amount of specific objects in the scene ?[SOLVED]  (Read 755 times)

secondsight

  • Playmaker Newbie
  • *
  • Posts: 19
    • View Profile
As the title says. What is the easiest way to do this ? This must be quite trivial, right ?
Thanks for your time !
« Last Edit: February 22, 2018, 03:27:28 AM by jeanfabre »

secondsight

  • Playmaker Newbie
  • *
  • Posts: 19
    • View Profile
Re: How to count the amount of specific objects in the scene ?
« Reply #1 on: February 11, 2018, 08: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.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 5473
    • View Profile
    • jinxtergames
Re: How to count the amount of specific objects in the scene ?
« Reply #2 on: February 12, 2018, 02: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

So i build one for you, you can get it on the EcoSystem

Search for 'Scene Objects Count'

I also added an option to search by tag.

secondsight

  • Playmaker Newbie
  • *
  • Posts: 19
    • View Profile
Re: How to count the amount of specific objects in the scene ?
« Reply #3 on: February 12, 2018, 04: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.