If you use both Category hierarchy and CallInEditor in UFUNCTION, it will result in an unintended sequence as shown below.
[Image Removed]
And, the following code can solve this issue
void FDetailLayoutBuilderImpl::GenerateDetailLayout() { ... SubCategoryMap.Empty(); for (FCategoryMap::TIterator It(DefaultCategoryMap); It; ++It) { // Remove all subcategories TSharedPtr<FDetailCategoryImpl> DetailCategory = It.Value(); // Note: Sub-categories are added later int32 Index = INDEX_NONE; if (DetailCategory->GetCategoryName().ToString().FindChar(FPropertyNodeConstants::CategoryDelimiterChar, Index)) { SubCategoryMap.Add(It.Key(), DetailCategory); It.RemoveCurrent(); } } #if 1 //workaround begins for (FCategoryMap::TIterator It(CustomCategoryMap); It; ++It) { // Remove all subcategories TSharedPtr<FDetailCategoryImpl> DetailCategory = It.Value(); // Note: Sub-categories are added later int32 Index = INDEX_NONE; if (DetailCategory->GetCategoryName().ToString().FindChar(FPropertyNodeConstants::CategoryDelimiterChar, Index)) { SubCategoryMap.Add(It.Key(), DetailCategory); It.RemoveCurrent(); } } #endif //workaround ends // Build default categories while (DefaultCategoryMap.Num() > 0) ...
1. Add function using subcategory
UFUNCTION(CallInEditor, Category = "Map|Capture")
void GenerateSnapshot();
2. compile
3. Check Detail panel of Actor
result : does not consider subcategory
i have this problem UE4CC-Windows-58DC12AF4B97F057BD108FBFF569B2E9_0000
I am not able to find world outliner how to enable it?
Undefined sysmbol: typeinfo for AActor when cross-compile linux dedicated server on windows
How can i modify the param name in EQS node
Delay nodes occasionally don't fire the "Completed" output in a nativized build
Hey, why do i get this when i snap two similar meshes together?
When I open UE4 4.24.3 it appears that. Does anyone know how to solve?
What property of the Slider is the image used when dragging?
What properties of the progress bar can be used for drag and drop highlighting?
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-164419 in the post.
3 |
Component | UE - Gameplay - Blueprint Editor |
---|---|
Affects Versions | 5.0 |
Created | Sep 20, 2022 |
---|---|
Updated | Mar 26, 2023 |