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 existing Questions & Answers thread and let us know what's up.

10
Login to Vote

Fixed
ComponentTools
Affects Versions4.12.3
Target Fix4.26
Fix Commit11574986
Main Commit11574986
CreatedJun 20, 2016
ResolvedFeb 21, 2020
UpdatedJun 25, 2020
View Jira Issue