playMaker

Author Topic: Cycling through resolutions in array list [SOLVED]  (Read 907 times)

Fat Pug Studio

  • Beta Group
  • Hero Member
  • *
  • Posts: 1294
    • Fat Pug Studio
Cycling through resolutions in array list [SOLVED]
« on: February 18, 2019, 02:42:16 AM »
Hi guys,

when i fire up the game, i get the screen height and width and save it into vector3 as a current resolution variable, which is then set as a string that will show up in the video menu when i go into it. Now, i've got a vector3 arraylist of resolutions, how can i iterate through the array by using the current resolution as an index that will be used as a pointer to get next or previous resolution from the array?
« Last Edit: February 18, 2019, 04:19:30 AM by krmko »
Available for Playmaker work

Fat Pug Studio

  • Beta Group
  • Hero Member
  • *
  • Posts: 1294
    • Fat Pug Studio
Re: Cycling through resolutions in array list [SOLVED]
« Reply #1 on: February 18, 2019, 04:20:21 AM »
Ah, i got it. I get the current resolution, compare it with resolution from the array, get the index and then get next/previous from that index.
Available for Playmaker work