How to hide lighting details in blueprint?

I have a custom C++ class that’s derived from AStaticMeshActor like so:

MyClass.h

UCLASS(HideCategories = (Rendering, Lighting))
class MyClass : public AStaticMeshActor
{
	GENERATED_UCLASS_BODY()
};

MyClass.cpp

MyClass::MyClass(const class FPostConstructInitializeProperties& PCIP)
	: Super(PCIP)
{
	
}

When I create a new blueprint from this class and check the details panel of the root component in the Components view of the blueprint, the Rendering category is hidden (as it should be, given the HideCategories specifier), but the Lighting category is not. Why is the Lighting Category not hidden since I included it in my HideCategories specifier and what needs to be done to hide it?

1 Like