x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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 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,

Juul

Product Version: UE 4.9
Tags:
more ▼

asked Oct 08 '15 at 12:04 PM in Bug Reports

avatar image

JJoosten
6 2 3 5

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hey JJoosten-

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

Cheers

Doug Wilson

more ▼

answered Oct 08 '15 at 02:47 PM

avatar image JJoosten Oct 08 '15 at 03:05 PM

Hi Doug,

Thanks for the quick action and reply!

Have a great day,

Juul

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question