playMaker

Author Topic: ArrayListIndexOfByString  (Read 569 times)

dudebxl

  • Hero Member
  • *****
  • Posts: 602
    • View Profile
ArrayListIndexOfByString
« on: January 17, 2016, 09:00:22 AM »
Search the array by name. Only tested with GameObject so that I can search for a GameObject(s) in arraylist by name (string) and get the current index. Not tested with any other variables...

Obviously won't work if your GameObject have the same name.

On ecosystem or https://snipt.net/dudebxl/

 :)
« Last Edit: January 17, 2016, 04:46:05 PM by dudebxl »

mdotstrange

  • Hero Member
  • *****
  • Posts: 549
    • View Profile
    • Can't code? Who cares! Make games anyway!
Re: ArrayListIndexOfByString
« Reply #1 on: January 17, 2016, 04:02:21 PM »
This is really useful! Thank you  :)
Indie game dev and instructor at the Strange School. Learn Playmaker at the Strange School!

dudebxl

  • Hero Member
  • *****
  • Posts: 602
    • View Profile
Re: ArrayListIndexOfByString
« Reply #2 on: January 17, 2016, 04:46:14 PM »
cool  :D

Alatriste

  • Full Member
  • ***
  • Posts: 112
    • View Profile
Re: ArrayListIndexOfByString
« Reply #3 on: September 17, 2017, 09:47:09 AM »
This doesn't seem to work with string variables.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12344
  • Official Playmaker Support
    • View Profile
Re: ArrayListIndexOfByString
« Reply #4 on: September 18, 2017, 12:01:30 AM »
Hi,

 I am not this action is needed, just use ArrayListIndexOf, is that not working?

 Bye,

 Jean