playMaker

Author Topic: Array List Insert  (Read 4336 times)

Flying Robot

  • Sr. Member
  • ****
  • Posts: 293
  • Od ton yebo redro
    • Flying Robot Studios
Array List Insert
« on: October 07, 2013, 05:23:37 AM »
Insert item at a specified index of a PlayMaker ArrayList Proxy component

Kinda essential for all purposes!

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Array List Insert
« Reply #1 on: October 07, 2013, 08:59:24 AM »
Hi,

 Thanks! that's goes in, never actually needed it! but totally make sense of course.

Bye,

 Jean

gamedivision

  • Full Member
  • ***
  • Posts: 227
Re: Array List Insert
« Reply #2 on: October 07, 2013, 01:53:31 PM »
so I can use this instead of arraylistadd , then store the index into a variable,now its just a case of controlling the index,if I remove an item from an array list does it automatically push the others down the list or does it create an empty slot

Flying Robot

  • Sr. Member
  • ****
  • Posts: 293
  • Od ton yebo redro
    • Flying Robot Studios
Re: Array List Insert
« Reply #3 on: October 08, 2013, 01:40:02 AM »
remove at action does what it's meant for. It blows up the item at that index. Doesn't even leaves an empty spot. The other item below the slot automatically shifts up to fill the position.