# Can't parse default value 'none' for Cameras?

**URL:** <https://forums.unrealengine.com/t/cant-parse-default-value-none-for-cameras/478596>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [February 10, 2021, 7:46pm UTC](https://forums.unrealengine.com/t/cant-parse-default-value-none-for-cameras/478596 "2021-02-10T19:46:22Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![HyperCazual](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HyperCazual](https://forums.unrealengine.com/u/HyperCazual)\
**Post date:** [February 10, 2021, 7:46pm UTC](https://forums.unrealengine.com/t/cant-parse-default-value-none-for-cameras/478596/1 "2021-02-10T19:46:22Z")

</div>

Can’t parse default value ‘none’ for Cameras?

Why is this a warning? How do I fix it?

 ![329452-untitled.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/0/d/00d662d1aaf66c41d5aa58d5e06e09440c9f7bc5.png)

btw the answer is not “put the add int into the get int slot”

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [February 10, 2021, 7:57pm UTC](https://forums.unrealengine.com/t/cant-parse-default-value-none-for-cameras/478596/2 "2021-02-10T19:57:17Z")

</div>

How many elements are there in that array by default?

---

<div class="post-metadata">

**Author:** ![HyperCazual](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HyperCazual](https://forums.unrealengine.com/u/HyperCazual)\
**Post date:** [February 11, 2021, 8:38pm UTC](https://forums.unrealengine.com/t/cant-parse-default-value-none-for-cameras/478596/3 "2021-02-11T20:38:54Z")

</div>

None, but how do you handle this when an array is empty until objects are spawned in?

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [February 11, 2021, 8:50pm UTC](https://forums.unrealengine.com/t/cant-parse-default-value-none-for-cameras/478596/4 "2021-02-11T20:50:58Z")

</div>

The array can be empty, that’s fine.

- what is the array object type - Camera Actor?
- can you select that variable and show its details panel?
- do you have any structs in the actor?
- do you have any transform / vectors variables in that actor?

---

<div class="post-metadata">

**Author:** ![BenVlodgi](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/benvlodgi/32/1194567_2.png) [@BenVlodgi](https://forums.unrealengine.com/u/BenVlodgi)\
**Post date:** [February 11, 2021, 9:50pm UTC](https://forums.unrealengine.com/t/cant-parse-default-value-none-for-cameras/478596/5 "2021-02-11T21:50:00Z")

</div>

This is a bug caused when you changed the `Cameras` variable to become an array. In UE4.26 this happens a lot.  
It has kept the original value of “none” instead of updating it to be an “Empty Array”

To fix you need to modify the default value and save.

To do this for an array: Select the `Cameras` variable in the details panel.

- Add an element to the default array
- Remove that element
- Then compile/save, and the issue should be gone

---

<div class="post-metadata">

**Author:** ![dadtaru](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dadtaru](https://forums.unrealengine.com/u/dadtaru)\
**Post date:** [February 27, 2021, 8:20pm UTC](https://forums.unrealengine.com/t/cant-parse-default-value-none-for-cameras/478596/6 "2021-02-27T20:20:23Z")

</div>

thanks for the fix this one had me spinning in circles

---

<div class="post-metadata">

**Author:** ![dripppysn](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dripppysn](https://forums.unrealengine.com/u/dripppysn)\
**Post date:** [December 14, 2023, 10:51am UTC](https://forums.unrealengine.com/t/cant-parse-default-value-none-for-cameras/478596/7 "2023-12-14T10:51:33Z")

</div>

This worked for me, thanks!
