Description

When the Category specifier of a UPROPERTY has more than one word, using the UCLASS specifier HideCategories requires the category name to be written all as one word even if the UPROPERTY is separated by spaces.

Ex:
Both (Category = "New Random Category") and (Category = "NewRandomCategory") would require UCLASS(HideCategories = ("NewRandomCategory"))

This could be confusing since the syntax of the categories does not match.

Steps to Reproduce
  1. Open UE4Editor (any project)
  2. Add code to project based on Actor (MyActor)
  3. Add the following to MyActor.h
    • Add to UCLASS macro
      HideCategories = ("New Random Category") 
      
    • Add to class declaration
      UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "New Random Category")
      	bool Choice;
      
  4. Compile
  5. Create and open blueprint based on MyActor

Result:
Choice variable is visible in the editor even though the Category and HideCategories names match.

Expected:
Properties are hidden when HideCategories string matches Category name string

Have Comments or More Details?

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

4
Login to Vote

Won't Fix
ComponentUE - Gameplay - Blueprint
Affects Versions4.13.24.14
CreatedNov 4, 2016
ResolvedAug 18, 2021
UpdatedAug 18, 2021
View Jira Issue