playMaker

Author Topic: Array list get game object & how many are there ? SOLVED  (Read 402 times)

Stain Corb

  • Playmaker Newbie
  • *
  • Posts: 45
    • View Profile
Array list get game object & how many are there ? SOLVED
« on: March 16, 2020, 07:39:12 PM »
Hello I am trying to get game objects from an Array List and I want to count them also.

I have tried:

When I add the game object to the Array list I get.

1-Array List Index Of / Indext Of = 0 It does nothing
2-Array List Contains Game Object / Result Index= -1, Stays -1 each time I add object.
3-Array List Contains Count / Cont = 0 Does nothing

What I need it to say is 1, 2, 3, Etc... as I add the game object multiple times.

It is adding to the array so this is not the issue.

What action should I use to  do this ?

Thanks for any help
« Last Edit: March 16, 2020, 10:28:16 PM by Stain Corb »

Stain Corb

  • Playmaker Newbie
  • *
  • Posts: 45
    • View Profile
Re: Array list get game object & how many are there ? SOLVED
« Reply #1 on: March 16, 2020, 10:29:20 PM »
It worked with

Array List Contains Count

Some strange reason it was working with some prefabs but not with the first until I remade it.

Works now :D