# How to manipulate the unselected portions of the array?

**URL:** <https://forums.unrealengine.com/t/how-to-manipulate-the-unselected-portions-of-the-array/486412>\
**Category:** UI\
**Tags:** arrays, unreal-engine, Array, Widget, Blueprint, question\
**Created:** [July 20, 2021, 12:47am UTC](https://forums.unrealengine.com/t/how-to-manipulate-the-unselected-portions-of-the-array/486412 "2021-07-20T00:47:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kpmagicman3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kpmagicman3](https://forums.unrealengine.com/u/kpmagicman3)\
**Post date:** [July 20, 2021, 12:47am UTC](https://forums.unrealengine.com/t/how-to-manipulate-the-unselected-portions-of-the-array/486412/1 "2021-07-20T00:47:01Z")

</div>

Hi!

I couldn’t seem to find an answer to this anywhere and maybe I’m doing this the wrong way as I’m still new to using arrays in Unreal. I have an array of 12 images in a widget menu. They are all on top of each other with only 1 having their render visibility set to 1. All other 11 have their render visibility set to 0. When clicking a button I want to cycle through all 12 images by turning on the index of the array image and making sure all the others stay at 0 as well as the previous one in the array now changing to 0.

I created a function called visibility slider which you can see an image of. Then in the main widget blueprint I call that function. Which you can see in the other image. The part I’m stuck on is that I want to get all of the other objects in the array BUT the current one to make sure to set their render visibility to 0.

 ![344536-visibilityslider.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/9/0/1907f99b5eba70e817a0a52e343a00ab6309c89c.png)

 ![344537-sliderarray.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/4/1/941d06ea9d87712eb171a4a5f3c335a54a026985.png)

Any suggestions would be really appreciated.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [July 20, 2021, 7:13am UTC](https://forums.unrealengine.com/t/how-to-manipulate-the-unselected-portions-of-the-array/486412/2 "2021-07-20T07:13:10Z")

</div>

The typical and easiest thing to do is turn them all off, and then turn the right one on 🙂

---

<div class="post-metadata">

**Author:** ![kpmagicman3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kpmagicman3](https://forums.unrealengine.com/u/kpmagicman3)\
**Post date:** [July 20, 2021, 12:11pm UTC](https://forums.unrealengine.com/t/how-to-manipulate-the-unselected-portions-of-the-array/486412/3 "2021-07-20T12:11:58Z")

</div>

Hey! Thanks for the reply. Yeah I agree this is probably the easier way but I was hoping there might be a more efficient way than creating 12 separate nodes of a bunch of on/off functions for each time it changes. Thanks!

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [July 20, 2021, 12:27pm UTC](https://forums.unrealengine.com/t/how-to-manipulate-the-unselected-portions-of-the-array/486412/4 "2021-07-20T12:27:40Z")

</div>

Like this:

 ![344570-screenshot-1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/6/1/c61db518e9390f567d966133334dc78a6c29b8d6.jpeg)

---

<div class="post-metadata">

**Author:** ![kpmagicman3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kpmagicman3](https://forums.unrealengine.com/u/kpmagicman3)\
**Post date:** [July 20, 2021, 12:49pm UTC](https://forums.unrealengine.com/t/how-to-manipulate-the-unselected-portions-of-the-array/486412/5 "2021-07-20T12:49:38Z")

</div>

Oh yes! That works! Thanks! Yeah I’m still learning about arrays. I figured I needed to use a For Each Loop. I just wasn’t sure how to set it up properly. THANKS!
