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:
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 https://docs.unrealengine.com/latest/INT/Programming/UnrealArchitecture/Reference/Classes/Specifiers/HideCategories/index.html
Please let me know what you find,
Thanks and have a great day,
I was able to reproduce the issue and have entered a report (UE-21916) to further investigate the bug.
answered Oct 08 '15 at 02:47 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here