# Accessed none trying to read property (variants)

**URL:** <https://forums.unrealengine.com/t/accessed-none-trying-to-read-property-variants/482531>\
**Category:** Blueprint\
**Tags:** accessed-none, unreal-engine, Blueprint, question\
**Created:** [April 27, 2021, 3:08pm UTC](https://forums.unrealengine.com/t/accessed-none-trying-to-read-property-variants/482531 "2021-04-27T15:08:48Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_e3b1e4d3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e3b1e4d3](https://forums.unrealengine.com/u/anonymous_user_e3b1e4d3)\
**Post date:** [April 27, 2021, 3:08pm UTC](https://forums.unrealengine.com/t/accessed-none-trying-to-read-property-variants/482531/1 "2021-04-27T15:08:48Z")

</div>

I’m trying to create a blueprint that will allow me to change a series of cushions in real time via variants. Here’s the script I’ve got so far:

 ![337273-ahelpa.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/8/3/98322841b80ee201cfe48dec51a37d7f4ac5a008.jpeg)

My Variant manager:

 ![337274-ahelpb.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/3/8/c38d4b4a4373d007e22f7d18a9933045e6f6dcbd.jpeg)

But whenever I go to play, I get the following error messages:

 ![337275-ahelpc.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/c/8/2c8153abe6b74eb7beb936bdcde8865d344987e7.jpeg)

Can anyone tell me what I’m doing wrong? 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:** [April 27, 2021, 6:33pm UTC](https://forums.unrealengine.com/t/accessed-none-trying-to-read-property-variants/482531/2 "2021-04-27T18:33:53Z")

</div>

Apparently, when you make the call, you have no actors of type ‘level variant sets’.

---

<div class="post-metadata">

**Author:** ![maxodia](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@maxodia](https://forums.unrealengine.com/u/maxodia)\
**Post date:** [July 13, 2022, 12:19pm UTC](https://forums.unrealengine.com/t/accessed-none-trying-to-read-property-variants/482531/3 "2022-07-13T12:19:16Z")

</div>

hello same problem here found any soluition

---

<div class="post-metadata">

**Author:** ![Roy\_Wierer.Seda145](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/roy_wierer.seda145/32/906551_2.png) [@Roy\_Wierer.Seda145](https://forums.unrealengine.com/u/Roy_Wierer.Seda145)\
**Post date:** [July 13, 2022, 1:21pm UTC](https://forums.unrealengine.com/t/accessed-none-trying-to-read-property-variants/482531/4 "2022-07-13T13:21:20Z")

</div>

Besides that Construct is not the right place to perform this type of action (it runs multiple times and not when you desire), You see that the blue object pin of VariantOption is connected to the switch input, but the var is not updated without executing the white input pin on the variable node. This results in an outdated and invalid variable.

---

<div class="post-metadata">

**Author:** ![maxodia](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@maxodia](https://forums.unrealengine.com/u/maxodia)\
**Post date:** [July 13, 2022, 1:47pm UTC](https://forums.unrealengine.com/t/accessed-none-trying-to-read-property-variants/482531/5 "2022-07-13T13:47:31Z")

</div>

ok what is the solution please ?

---

<div class="post-metadata">

**Author:** ![Roy\_Wierer.Seda145](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/roy_wierer.seda145/32/906551_2.png) [@Roy\_Wierer.Seda145](https://forums.unrealengine.com/u/Roy_Wierer.Seda145)\
**Post date:** [July 13, 2022, 2:10pm UTC](https://forums.unrealengine.com/t/accessed-none-trying-to-read-property-variants/482531/6 "2022-07-13T14:10:06Z")

</div>

Connect the “OnClick” node to the GetActorsOfClass node , replacing construct. Then check if the array produced by GetActorsOfClass contains anything, else index 0 will result in out of bounds error.

---

<div class="post-metadata">

**Author:** ![maxodia](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@maxodia](https://forums.unrealengine.com/u/maxodia)\
**Post date:** [July 13, 2022, 9:08pm UTC](https://forums.unrealengine.com/t/accessed-none-trying-to-read-property-variants/482531/7 "2022-07-13T21:08:59Z")

</div>

didnt work also my variant is working well in the view port

---

<div class="post-metadata">

**Author:** ![Ravi\_Kumar\_007](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ravi\_Kumar\_007](https://forums.unrealengine.com/u/Ravi_Kumar_007)\
**Post date:** [July 24, 2022, 1:16pm UTC](https://forums.unrealengine.com/t/accessed-none-trying-to-read-property-variants/482531/8 "2022-07-24T13:16:14Z")

</div>

Facing same problem is there any solution

---

<div class="post-metadata">

**Author:** ![Vanuki](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vanuki](https://forums.unrealengine.com/u/Vanuki)\
**Post date:** [March 3, 2023, 5:53pm UTC](https://forums.unrealengine.com/t/accessed-none-trying-to-read-property-variants/482531/9 "2023-03-03T17:53:29Z")

</div>

I FOUND A SOLUTION. It’s very simple and silly kkkk. Just drag the “levelVariantSets” from content browser to the level and voala!
