Commit Graph

28 Commits

Author SHA1 Message Date
robert manuszewski
d1443992e1 Deprecating ANY_PACKAGE.
This change consists of multiple changes:

Core:
- Deprecation of ANY_PACKAGE macro. Added ANY_PACKAGE_DEPRECATED macro which can still be used for backwards compatibility purposes (only used in CoreUObject)
- Deprecation of StaticFindObjectFast* functions that take bAnyPackage parameter
- Added UStruct::GetStructPathName function that returns FTopLevelAssetPath representing the path name (package + object FName, super quick compared to UObject::GetPathName) + wrapper UClass::GetClassPathName to make it look better when used with UClasses
- Added (Static)FindFirstObject* functions that find a first object given its Name (no Outer). These functions are used in places I consider valid to do global UObject (UClass) lookups like parsing command line parameters / checking for unique object names
- Added static UClass::TryFindType function which serves a similar purpose as FindFirstObject however it's going to throw a warning (with a callstack / maybe ensure in the future?) if short class name is provided. This function is used  in places that used to use short class names but now should have been converted to use path names to catch any potential regressions and or edge cases I missed.
- Added static UClass::TryConvertShortNameToPathName utility function
- Added static UClass::TryFixShortClassNameExportPath utility function
- Object text export paths will now also include class path (Texture2D'/Game/Textures/Grass.Grass' -> /Script/Engine.Texture2D'/Game/Textures/Grass.Grass')
- All places that manually generated object export paths for objects will now use FObjectPropertyBase::GetExportPath
- Added a new startup test that checks for short type names in UClass/FProperty MetaData values

AssetRegistry:
- Deprecated any member variables (FAssetData / FARFilter) or functions that use FNames to represent class names and replaced them with FTopLevelAssetPath
- Added new member variables and new function overloads that use FTopLevelAssetPath to represent class names
- This also applies to a few other modules' APIs to match AssetRegistry changes

Everything else:
- Updated code that used ANY_PACKAGE (depending on the use case) to use FindObject(nullptr, PathToObject), UClass::TryFindType (used when path name is expected, warns if it's a short name) or FindFirstObject (usually for finding types based on user input but there's been a few legitimate use cases not related to user input)
- Updated code that used AssetRegistry API to use FTopLevelAssetPaths and USomeClass::StaticClass()->GetClassPathName() instead of GetFName()
- Updated meta data and hardcoded FindObject(ANY_PACKAGE, "EEnumNameOrClassName") calls to use path names

#jira UE-99463
#rb many.people
[FYI] Marcus.Wassmer
#preflight 629248ec2256738f75de9b32

#codereviewnumbers 20320742, 20320791, 20320799, 20320756, 20320809, 20320830, 20320840, 20320846, 20320851, 20320863, 20320780, 20320765, 20320876, 20320786

#ROBOMERGE-OWNER: robert.manuszewski
#ROBOMERGE-AUTHOR: robert.manuszewski
#ROBOMERGE-SOURCE: CL 20430220 via CL 20433854 via CL 20435474 via CL 20435484
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v949-20362246)

[CL 20448496 by robert manuszewski in ue5-main branch]
2022-06-01 03:46:59 -04:00
benjamin fox
06b55b3af2 Save asset picker config in the Header Preview
#jira UE-150228
#preflight 6282b22e6d51c29ec4207bbe
#rb phillip.kavan

[CL 20261267 by benjamin fox in ue5-main branch]
2022-05-18 10:57:10 -04:00
lauren barnes
4b82e918fa Replacing legacy EditorStyle calls with AppStyle
#rb header and class name replacement

#ROBOMERGE-AUTHOR: lauren.barnes
#ROBOMERGE-SOURCE: CL 20078276 via CL 20078825
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v943-19904690)

[CL 20106316 by lauren barnes in ue5-main branch]
2022-05-09 13:51:26 -04:00
benjamin fox
04570dbc47 Fix Syntax Color not changing in C++ Header Preview Settings
#jira UE-150218
#rb trivial
#preflight skip

[CL 19925133 by benjamin fox in ue5-main branch]
2022-04-26 14:17:36 -04:00
benjamin fox
ef423e1034 Fix missing includes
#jira UE-150239
#rb none
#preflight skip

[CL 19924877 by benjamin fox in ue5-main branch]
2022-04-26 14:04:55 -04:00
benjamin fox
d71137e598 BP Header Preview: Add buttons to browse to asset and open asset
#jira UE-149898
#rb marc.audy
#preflight 6266b812e73e257316085f8f

[CL 19902921 by benjamin fox in ue5-main branch]
2022-04-25 11:09:11 -04:00
benjamin fox
d2f4b63825 Clamp Blueprint Header Preview settings Font Size to avoid ensure
#jira UE-149906
#rb dave.jones2
#preflight skip

[CL 19873420 by benjamin fox in ue5-main branch]
2022-04-22 17:12:17 -04:00
benjamin fox
951fb31807 BPHeaderView: Remove OnBlueprintChanged delegate when header view is closed
#jira UE-148939
#jira UE-149769
#preflight 6261b4467d162829ae88e3ba
#rb ben.hoffman

[CL 19856813 by benjamin fox in ue5-main branch]
2022-04-21 17:59:34 -04:00
benjamin fox
c6d9246dae BP Header View: Add Sorting option for optimal struct padding
#jira UE-147423
#preflight 624b64f1dc6183e3f54a7060
#rb justin.hare

[CL 19743702 by benjamin fox in ue5-main branch]
2022-04-13 14:59:02 -04:00
benjamin fox
d8d9275d12 Rename Blueprint Header View to clearer Blueprint Equivalent C++ Header Preview
#rb trivial
#jira UE-147420
#preflight skip

[CL 19629952 by benjamin fox in ue5-main branch]
2022-04-05 15:54:11 -04:00
benjamin fox
8be59f45e8 Align Name validation in the BP Header View with the Blueprint Editor
#jira UE-147422
#preflight 62463f76b6084b9832505740
#rb phillip.kavan

[CL 19614032 by benjamin fox in ue5-main branch]
2022-04-04 15:50:39 -04:00
benjamin fox
24172c87ab Fix BP Header View using the wrong font
#rb trivial
#preflight skip

[CL 19577164 by benjamin fox in ue5-main branch]
2022-03-31 15:37:25 -04:00
benjamin fox
c9ccf2ae7f BPHeaderView: Expose FontSize and ListItem SelectionColor to config
#jira UE-147421
#rb ben.hoffman
#preflight 624386943a5a4c1622b7f545

[CL 19559534 by benjamin fox in ue5-main branch]
2022-03-30 13:13:37 -04:00
benjamin fox
834d90fec4 BPHeaderView: Add a Jump to Definition option to Function items via context menu or double click
#preflight 623cb77f5c488c89d6d67f6e
#rb justin.hare

[CL 19542427 by benjamin fox in ue5-main branch]
2022-03-29 11:06:58 -04:00
benjamin fox
10bce07e2a Fix Incorrect Property Flags in Header View
#rb trivial
#preflight skip

[CL 19482157 by benjamin fox in ue5-main branch]
2022-03-23 13:58:36 -04:00
benjamin fox
1c992fe454 BPHeaderView: Automatically select blueprint if Header View was summoned from the Blueprint Editor
#jira UE-145184
#preflight 623a2efddb0f61c79263c558
#rb ben.hoffman

[CL 19472793 by benjamin fox in ue5-main branch]
2022-03-22 17:44:34 -04:00
benjamin fox
fa55698aaa Fix Incorrect Include path
#rb none
#rnx
#preflight skip

[CL 19469536 by benjamin fox in ue5-main branch]
2022-03-22 14:18:08 -04:00
benjamin fox
9429b5c817 BP Header View: Add Context Menu action to Blueprint Assets to open the Header View
#jira UE-145343
#preflight 6238e38dbc1cf2803858c491
#rb marc.audy

[CL 19466563 by benjamin fox in ue5-main branch]
2022-03-22 10:54:10 -04:00
benjamin fox
9d73525274 BP Header View: Add context menu options to rename illegal fields
#jira UE-145334
#rb justin.hare
#preflight 6238dae6bc1cf28038588181

[CL 19457403 by benjamin fox in ue5-main branch]
2022-03-21 16:12:17 -04:00
benjamin fox
df6912fe0d BP Header View: Add Config options for syntax highlighting and field sorting
#jira UE-145341
#rb andrew.davidson
#preflight 62320c536e25767a218b1300

[CL 19407100 by benjamin fox in ue5-main branch]
2022-03-16 12:20:58 -04:00
benjamin fox
2c0e804111 BPHeaderView: Add support for blueprint added components
#jira UE-144064
#rb phillip.kavan
#preflight 622a3dd8df3960e506a6462f

[CL 19338588 by benjamin fox in ue5-main branch]
2022-03-10 13:14:26 -05:00
benjamin fox
38f6a6d0ae BPHeaderView: Add support for Delegate properties
#jira UE-144065
#rb dave.jones2
#rb ben.hoffman
#preflight 6228f23f0d5a90e98ec8ddf1

[CL 19323409 by benjamin fox in ue5-main branch]
2022-03-09 13:43:41 -05:00
benjamin fox
981c842faa BPHeaderView: Add context menu with generic options (select all, copy text)
#jira UE-138708
#rb justin.hare
#preflight 62263e40ec4424ee239c5704

[CL 19286818 by benjamin fox in ue5-main branch]
2022-03-07 12:39:44 -05:00
benjamin fox
325b19dab9 BPHeaderView: Fix typo in string literal
#rb none
#rnx
#preflight skip

[CL 19178281 by benjamin fox in ue5-main branch]
2022-02-28 14:00:44 -05:00
benjamin fox
9565bad74b BlueprintHeaderView: Add ListView items for variables and fix function parameter type names
#jira UE-138707
#jira UE-143137
#rb phillip.kavan
#preflight 62180683e27ba405e8653eab

[CL 19175085 by benjamin fox in ue5-main branch]
2022-02-28 11:37:01 -05:00