Download

Blueprint compilation sets pointer array property to None

Hi

I have a Blueprint that inherits a C++ class. I added a property to the C++ class the following way:

UPROPERTY(EditAnywhere, BlueprintReadWrite)
TArray<URABuildableObject*> Toolbar;

In the Blueprint inherited class I add an item to the array and fill it with a Blueprint class that inherits from a C++ class defined in the following way:

UCLASS(BlueprintType, Blueprintable, EditInlineNew, DefaultToInstanced)
class REVERSEASSEMBLY_API URABuildableObject : public UObject

It is set to DefaultToInstanced as you can see.

Everytime I compile the inherited Blueprint class that has the array property the values in the editor always reset to ‘None’.

Before compilation

After compilation

second

Is there any workaround for this? What am i missing can you plaese advise?

Thanks!

Bump

Have you edited the array on an instance, or are the default values you’ve set in the blueprint editor disappearing? Have you tried adding Instanced to the UPROPERTY declaration?

In my experience EditInlineNew and Instanced objects have a bunch of annoying engine bugs.