Description

Customer provides details, including a fix for the problem. See UDN post attached.

Steps to Reproduce
  1. Create a component (UMyCustomComponent) with the given code:
    USTRUCT(BlueprintType)
    struct FCustomStructWithDataAssetReference
    {
    	GENERATED_USTRUCT_BODY()
    
    	FCustomStructWithDataAssetReference() : CustomDataAsset(nullptr) {}
    	
    	UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Development")
    	UClass* CustomDataAsset;
    };
    
    UCLASS(BlueprintType, EditInlineNew)
    class UInstancedInlineObject : public UObject
    {
    public:
    	GENERATED_BODY()
    public:
    	UInstancedInlineObject(const FObjectInitializer& ObjectInitializer = FObjectInitializer::Get()) : Super(ObjectInitializer) {}
    
    	UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Development")
    	TArray<FCustomStructWithDataAssetReference> MyArray;
    };
    
    UCLASS(ClassGroup = (Development), Blueprintable, BlueprintType, meta = (BlueprintSpawnableComponent))
    class UMyCustomComponent : public UActorComponent
    {
    public:
    	GENERATED_BODY()
    public:
    	UMyCustomComponent(const FObjectInitializer& ObjectInitializer = FObjectInitializer::Get()) : Super(ObjectInitializer), InstancedInlineObject(nullptr) {}
    
    	UPROPERTY(Instanced, Category = Development, BlueprintReadOnly, EditAnywhere)
    	UInstancedInlineObject*  InstancedInlineObject;
    };
    
  2. Create a new actor Blueprint
  3. In the construction script, add a "Add MyCustomComponent" node
  4. Select the node
  5. In the details panel, set the InstancedInlineObject property to "Instanced Inline Object"
  6. Add an element to the MyArray property that's part of the inlined object

Result: The "CustomDataAsset" class field is not available for edit, like it would be when editing a component in the SCS tree

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-30502 in the post.

0
Login to Vote

Won't Fix
ComponentUE - Gameplay - Components
Affects Versions4.11
CreatedMay 9, 2016
ResolvedAug 18, 2021
UpdatedAug 18, 2021
View Jira Issue