Description

Setting subcategory for struct variables and using ShowOnlyInnerProperties causes variables with subcategory to not appear in the editor.

Steps to Reproduce
  1. Open UE4 Editor (any project)
  2. Add code based on Object (BugTest)
  3. Replace class declaration in BugTest.h with
    USTRUCT(BlueprintType)
    struct FTestStruct {
    	GENERATED_BODY()
    
    		UPROPERTY(EditAnywhere, Category = "Test Category")
    		FString Value1;
    
    	UPROPERTY(EditAnywhere, Category = "First|Second")
    		FString Value2;
    
    	UPROPERTY(EditAnywhere, Category = "First|Second")
    		FString SubValue1;
    
    	UPROPERTY(EditAnywhere, Category = "First|Second")
    		FString SubValue2;
    
    	UPROPERTY(EditAnywhere, Category = "First|Second")
    		FString Hello;
    
    	UPROPERTY(EditAnywhere, Category = "First|Second")
    		FString AnotherHello;
    };
    
    UCLASS(BlueprintType, Blueprintable)
    class [PROJECTNAME]_API UBugTest : public UObject
    {
    	GENERATED_BODY()
    
    		UPROPERTY(EditAnywhere, Category = "Category", meta = (ShowOnlyInnerProperties))
    		FTestStruct Test;
    };
    
  4. compile
  5. Create a blueprint based on BugTest

Result:
Only Value1 will be visible in details panel of blueprint

Expected:
Struct variables appear in category/subcategory headings.

Have Comments or More Details?

Head over to the existingAnswerHub thread and let us know what's up.

10
Login to Vote

Unresolved
ComponentTools
Affects Versions4.12.3
CreatedJun 20, 2016
UpdatedFeb 4, 2019