41 Commits

Author SHA1 Message Date
dan oconnor
13cf660589 Fix for crash when adding a component in the level editor after its scene root has been deleted, which is permitted for actors based on native classes that do not have a required scene root
#rb ben.hoffman
#jira UE-209295

[CL 32498309 by dan oconnor in 5.4 branch]
2024-03-26 01:50:51 -04:00
ben hoffman
c036408a8b Fix an incorrect tooltip on the Default Scene Root component in the subobject editor. It incorrectly said that "it cannot be copied", but it is perfectly valid to copy the scene root component and paste it somewhere else in the subobject hierarchy.
#jira UE-192769
#rb Zak.Middleton

[CL 30979438 by ben hoffman in 5.4 branch]
2024-01-29 17:43:13 -05:00
zhikang shao
7404e83db3 Reverting blueprint editor shortcut Alt+Shift+F to search locally by mapping it to the singular Find References action. The singular Find References action, while not exposed to UI for nodes that have Find References By Name/Class Member support, can still be triggered with shortcut and will trigger a local By Name or By Class Member search based on what the previous behavior was for that node type. For function nodes it will search by function name, while for variable nodes it will do an exact search since Find References already did that for a while.
However: function searches will do a quoted search by native function name. The previous behavior was unquoted search by node title (usually function display name). As a result, the previous behavior for Find References would fail in functions with special characters in their name. Now that the name is surrounded in quotes, all function names are supported. The new Find References behavior now searches for correct function name for parent call nodes, interface implementations, event overrides, where the previous behavior failed due to searching for node title.
#rb Phillip.Kavan

[CL 30856744 by zhikang shao in 5.4 branch]
2024-01-24 14:33:15 -05:00
zhikang shao
5a4f3dadcf #jira UE-196209
Improves "Find References" in blueprints: now supports function search by [class, function] call-sites and definitions rather than a generic search for function name. Replaces the "Find References" context menu action with a sub-menu for variables and functions in BlueprintEditor, WidgetBlueprintEditor, SubobjectEditor and SubobjectEditor. That context sub-menu has 'By Name' and 'By Class Member' search options and local+global versions of both.

Made changes to Find-in-Blueprints metadata that is generated per blueprint asset to be able to do "specific function of a specific class" type queries; some search types were unsupported with previous metadata. Incremented the EFiBVersion so that the Find-in-Blueprints search window will ask to re-index all blueprints and resave. Added an opt-out editor setting "Allow Index All Blueprints" (default: true) to disable the button, which can be decided per project. Added an action in the Find-in-Blueprints modal when outdated metadata is detected to export the list of affected assets.
#rb Phillip.Kavan

[CL 30316851 by zhikang shao in ue5-main branch]
2023-12-14 06:34:39 -05:00
zhikang shao
15c016080d [Backout] - CL30289707
[FYI] zhikang.shao
Original CL Desc
-----------------------------------------------------------------
#jira UE-196209
Improves "Find References" in blueprints: now supports function search by [class, function] call-sites and definitions rather than a generic search for function name. Replaces the "Find References" context menu action with a sub-menu for variables and functions in BlueprintEditor, WidgetBlueprintEditor, SubobjectEditor and SubobjectEditor. That context sub-menu has 'By Name' and 'By Class Member' search options and local+global versions of both.

Made changes to Find-in-Blueprints metadata that is generated per blueprint asset to be able to do "specific function of a specific class" type queries; some search types were unsupported with previous metadata. Incremented the EFiBVersion so that the Find-in-Blueprints search window will ask to re-index all blueprints and resave. Added an opt-out editor setting "Allow Index All Blueprints" (default: true) to disable the button, which can be decided per project. Added an action in the Find-in-Blueprints modal when outdated metadata is detected to export the list of affected assets.
#rb Phillip.Kavan

[CL 30289794 by zhikang shao in ue5-main branch]
2023-12-13 07:33:50 -05:00
zhikang shao
68c300ecfa #jira UE-196209
Improves "Find References" in blueprints: now supports function search by [class, function] call-sites and definitions rather than a generic search for function name. Replaces the "Find References" context menu action with a sub-menu for variables and functions in BlueprintEditor, WidgetBlueprintEditor, SubobjectEditor and SubobjectEditor. That context sub-menu has 'By Name' and 'By Class Member' search options and local+global versions of both.

Made changes to Find-in-Blueprints metadata that is generated per blueprint asset to be able to do "specific function of a specific class" type queries; some search types were unsupported with previous metadata. Incremented the EFiBVersion so that the Find-in-Blueprints search window will ask to re-index all blueprints and resave. Added an opt-out editor setting "Allow Index All Blueprints" (default: true) to disable the button, which can be decided per project. Added an action in the Find-in-Blueprints modal when outdated metadata is detected to export the list of affected assets.
#rb Phillip.Kavan

[CL 30289718 by zhikang shao in ue5-main branch]
2023-12-13 07:25:05 -05:00
julien stjean
dfdef598b8 Speculative fix for an crash in the function SSubobjectEditor::RestoreSelectionState.
If the node doesn't have a valid handle for its data source it will crash when calling the function GetVariableName.

#rb Daren.Cheng

[CL 29420659 by julien stjean in ue5-main branch]
2023-11-03 16:41:14 -04:00
dan oconnor
364291983a Make subobject editor fix more conservative, just fix implementation of SSubobjectEditor::GetSelectedItemsForContextMenu to provide the correct component for inherited SCS components
#jira UE-194087, UE-196020, UE-194833
#rb Phillip.Kavan, Ben.Hoffman

[CL 28670594 by dan oconnor in ue5-main branch]
2023-10-11 13:09:28 -04:00
maxime mercier
73a6f9aeef Made the subobject editor respect overrides Interface API
#preflight 6446e67027014596f38f1038

[CL 25180602 by maxime mercier in ue5-main branch]
2023-04-25 10:53:00 -04:00
jlnordin
76ba018fed PR #9991: Fix Blueprint debugger crash when attempting to observe a TimerHandle variable (Contributed by jlnordin)
#review-23644523 patrick.boutot
#jira UE-173788
#preflight 63bebd47bf54fa7b36e5cc1c

[CL 23645193 by jlnordin in ue5-main branch]
2023-01-11 09:57:42 -05:00
geordiemhall
2f702d7cb3 PR #9595: Fix selected component being lost when compiling a Blueprint (Contributed by geordiemhall)
#jira UE-165026
#preflight 6387c9d3b21cdd3a26dc2082
#rb daren.cheng

[CL 23340078 by geordiemhall in ue5-main branch]
2022-11-30 16:37:42 -05:00
henrik karlsson
b5b86c796c This change is a strategical submit for a coming change that removes lots of includes in headers that are included by many files. This change contains adding of includes in files that previously got those includes transitively from other inclkudes
#preflight 6355d4940313c24974b2107b
#rb none

[CL 22783162 by henrik karlsson in ue5-main branch]
2022-10-26 12:57:32 -04:00
patrick enfedaque
e64f17803d SActorDetails: Fix SubObjectEditor not being cleared properly
#rb ben.hoffman
#preflight 6346e694663dafe4162f6b77
#rnx

[CL 22505214 by patrick enfedaque in ue5-main branch]
2022-10-13 11:21:34 -04:00
scott nelson
b009b1c743 Remove Go/Edit To Blueprint menu options when the blueprint is not accessible
#rb Dave.Belanger
#preflight 630010d00f7187ef8120a99c

[CL 21500775 by scott nelson in ue5-main branch]
2022-08-22 21:51:43 -04:00
dave belanger
4b30163a23 Hide C++ related menus and hyperlinks from the subobject editor when C++ is not allowed
#rb Phillip.Kavan
#preflight skip

#ROBOMERGE-AUTHOR: dave.belanger
#ROBOMERGE-SOURCE: CL 21113526 via CL 21113534 via CL 21113687 via CL 21113722 via CL 21113747
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v972-20964824)

[CL 21142385 by dave belanger in ue5-main branch]
2022-07-17 22:41:08 -04:00
nate strohmyer
ae5cf68a2f Fixing empty Actors having a root component with an Edit in Blueprint hyperlink that doesn't work
#jira UE-145339
#rb ben.hoffman
#preflight 629921851941378d7c78e4f4

[CL 20490724 by nate strohmyer in ue5-main branch]
2022-06-03 14:53:17 -04:00
Lauren Barnes
6248f8d412 Replacing legacy EditorStyle calls with AppStyle
#preflight 6272a74d2f6d177be3c6fdda
#rb Matt.Kuhlenschmidt

#ROBOMERGE-OWNER: Lauren.Barnes
#ROBOMERGE-AUTHOR: lauren.barnes
#ROBOMERGE-SOURCE: CL 20057269 via CL 20070159 via CL 20072035 via CL 20072203
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v943-19904690)
#ROBOMERGE-CONFLICT from-shelf

[CL 20105363 by Lauren Barnes in ue5-main branch]
2022-05-09 13:12:28 -04:00
Matt Peters
c1b46b1fed FAssetData: Callsites need to handle AssetData.GetClass() returning null. Added IsInstanceOf(UClass*) for the common operation GetClass() && GetClass->IsChildOf(BaseClass).
#jira UE-146521
#rb Zousar.Shaker
#rnx
#preflight 623874b789625f06129e466b

[CL 19450936 by Matt Peters in ue5-main branch]
2022-03-21 09:00:36 -04:00
michael noland
ab53a1b72e Split BP project settings out into a separate header
#jira UE-81056
#preflight 61dfb80df61ef33adf330a27

#ROBOMERGE-AUTHOR: michael.noland
#ROBOMERGE-SOURCE: CL 18594094 in //UE5/Release-5.0/... via CL 18594096 via CL 18594101
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Test -> Main) (v899-18417669)

[CL 18596566 by michael noland in ue5-main branch]
2022-01-13 10:03:20 -05:00
ben hoffman
c72ff9d6d4 Fix an ensure that is thrown when searching a component tree that has a brand new component added to it. This is an outdated ensure after the refactor from SCSEditor -> Subobject Editor. Remove an unnecessary include file
#jira UE-138798
#rb trivial
#rnx
#preflight 61df40bd6a076ddb5304ebdc

#ROBOMERGE-AUTHOR: ben.hoffman
#ROBOMERGE-SOURCE: CL 18589405 in //UE5/Release-5.0/... via CL 18589411 via CL 18589432
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Test -> Main) (v899-18417669)

[CL 18589450 by ben hoffman in ue5-main branch]
2022-01-12 16:10:18 -05:00
aditya ravichandran
02e38e60b8 Update Component Tree icons and styling
#jira UE-112704
#rb lauren.barnes
#preflight 61b8cbfb2e65a1df04682cdd

#ROBOMERGE-AUTHOR: aditya.ravichandran
#ROBOMERGE-SOURCE: CL 18455533 in //UE5/Release-5.0/... via CL 18455581
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v898-18417669)

[CL 18455607 by aditya ravichandran in ue5-release-engine-test branch]
2021-12-14 12:08:13 -05:00
phillip kavan
4266aae5f3 Add non-imported class type filtering to the "Add Component" type selection UI in the Blueprint editor.
Additionally auto-import any namespace associated with the selected component class type when a new component is added.

Change summary:
- Modified the component type registry to internally create/store unloaded BP data to assist with unloaded BP component type filtering.
- Added FEditorClassUtils::GetImplementedInterfaceClassPathsFromAsset() to move BP interface asset tag processing into a shared utility API.
- Modified SComponentClassCombo to work with IClassViewFilter-style filtering and added a filter options menu (currently only visible when namespace filtering features are enabled via CVar).
- A few minor modifications/additions to SSubobjectEditor/SSubobjectBlueprintEditor to assist with interfacing with the owning FBlueprintEditor context for filtering, updating etc.

#jira UE-133294
#rb Ben.Hoffman
#preflight 61b7c0601a4451f7ba1d0c46

#ROBOMERGE-AUTHOR: phillip.kavan
#ROBOMERGE-SOURCE: CL 18449755 in //UE5/Release-5.0/... via CL 18449768
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v897-18405271)

[CL 18449772 by phillip kavan in ue5-release-engine-test branch]
2021-12-13 17:39:02 -05:00
ben hoffman
3fb0faa6e7 Hide filtered components when typing in the Subobject Editor tree view instead of just selecting them.
#FORT-416664
#rb trivial
#rnx

#ROBOMERGE-AUTHOR: ben.hoffman
#ROBOMERGE-SOURCE: CL 18245855 in //UE5/Release-5.0/... via CL 18245900
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v895-18170469)

[CL 18245960 by ben hoffman in ue5-release-engine-test branch]
2021-11-18 18:06:17 -05:00
aurel cordonnier
a6e741e007 Merge from Release-Engine-Staging @ 17915896 to Release-Engine-Test
This represents UE4/Main @17911760, Release-5.0 @17915875 and Dev-PerfTest @17914035

[CL 17918595 by aurel cordonnier in ue5-release-engine-test branch]
2021-10-25 20:05:28 -04:00
ben hoffman
987ea6e71d Correctly use the parent handle when adding a component with a selection from the content browser in the subobject editor. Previously it was attempting to find the parent handle for the asset, which would always return null. We just need to use the root handle of the subobject tree instead.
#jira UE-125172
#rb marc.audy
#rb dave.jones2
#rnx

#ROBOMERGE-AUTHOR: ben.hoffman
#ROBOMERGE-SOURCE: CL 17585348 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v871-17566257)

[CL 17585439 by ben hoffman in ue5-release-engine-test branch]
2021-09-21 14:01:52 -04:00