Description

If a TArray declared in a component class has the UPROPERTY specifier "Instanced", then attempts to edit an instance of the array in the editor viewport after adding the component to a blueprint does not update and only retains the value set in the blueprint.

Steps to Reproduce
  1. Open UE4 Editor
  2. Add class to project based on Actor Component (MyActorComp)
  3. Add the following in MyActorComp.h
    UPROPERTY(EditAnywhere, Instanced, BlueprintReadWrite, Category = "ObjecsList")
    	TArray<UObject*> ListOfObjects;
    
  4. Compile
  5. Create blueprint based on Actor (ActorBP)
  6. Add instance of MyActorComp to ActorBP
  7. Add ActorBP to viewport
  8. Select MyActorComp from details panel and press "+" icon to add element to array

Result:
No new elements are added. No edit to array from editor viewport are recognized.

Expected:
Array is editable per instance in the viewport.

Have Comments or More Details?

Head over to the existing Questions & Answers thread and let us know what's up.

8
Login to Vote

Cannot Reproduce
ComponentUE - Gameplay - Blueprint
Affects Versions4.13.1
Target Fix4.26.1
CreatedOct 11, 2016
ResolvedJan 28, 2021
UpdatedFeb 1, 2021
View Jira Issue