AspectRatio UPROPERTY from CameraComponent hidden by HideCatagories can not be found and causes assert

I am working on a plugin that uses the CameraComponent as a baseclass. When I make sure that all the CameraComponent UPROPERTIES are hidden in the editor by using HideCategories = (CameraSettings) in the UCLASS of my component; FCameraDetails::CustomizeDetails failes on line 30 check(AspectRatioProperty.IsValid() as the AspectRatioProperty was not found using AspectRatioProperty = DetailLayout.GetProperty(GET_MEMBER_NAME_CHECKED(UCameraComponent, AspectRatio)); on line 29.

From the documentation I found that using HideCatagories should only hide the UPROPERTY values in the UE Editor Property Window. It seems that in this case, the properties are also not created as member variables that can be searched for?

This is easily reproducible by:

  1. Making a class that inherits UCameraComponent.
  2. Making sure that the CameraSettings UPROPERTIES are hidden by using the HideCatagories=(CameraSettings) in the UCLASS of the newly created class.
  3. Compile.
  4. Create an empty Actor in the scene.
  5. Use Add Component and add the newly created class as a component.
  6. As soon as the component is added the crash will occur.

I use the following UCLASS to easily find my newly created component in the component view:
UCLASS(HideCategories = (CameraSettings, Mobility, Rendering, LOD), Blueprintable, ClassGroup = Camera, meta = (BlueprintSpawnableComponent))

This is the reference to the HideCategories attribute for UCLASS

Please let me know what you find,

Thanks and have a great day,


Hey JJoosten-

I was able to reproduce the issue and have entered a report (UE-21916) to further investigate the bug.


Hi ,

Thanks for the quick action and reply!

Have a great day,