playMaker

Author Topic: ArrayListIndexOfByString  (Read 3111 times)

dudebxl

  • Hero Member
  • *****
  • Posts: 602
ArrayListIndexOfByString
« on: January 17, 2016, 11: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, 06:46:05 PM by dudebxl »

mdotstrange

  • Hero Member
  • *****
  • Posts: 555
    • Can't code? Who cares! Make games anyway!
Re: ArrayListIndexOfByString
« Reply #1 on: January 17, 2016, 06: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
Re: ArrayListIndexOfByString
« Reply #2 on: January 17, 2016, 06:46:14 PM »
cool  :D

Alatriste

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

jeanfabre

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

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

 Bye,

 Jean