Local array variables don't remember default value

If I create a local variable with type array of classes, it remembers the size of the array but not the values (i.e. just get an array of Nones).

Steps to reproduce:

  1. In a blueprint function, create a local variable.

  2. Make the type an array of actor classes:

    i.e. in C++ the type would be

    TArray< TSubclassOf< AActor > >

  3. Add some elements to the default entry and set them to some types

  4. Inspect the array at run time and observe that is now just an array of nones.

It initially sounded similar to this forum post, but the problem described there has been fixed by 4.8.

Hi ,

When I create a local actor array variable, the default values are replaced with a warning that the default values are not editable, which is what I expect. Do you have any steps I can take to reproduce this on my end?

Not an array of actors, but an array of TSubclassOf in C++, I’ll try to make this clearer in the question.

Do you have a sample project that this is occurring in? I’d be happy to take a look.

Hi ,

We have not heard from you in several days. I am marking this as answered for tracking purposes. If you are still experiencing this error, please comment back with the requested information.