Commit Graph

25 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
George Rolfe
6eaf01b1f2 WebAPICodeGenFile.h non-unity fix
#jira UE-155328
#rb none
#preflight 629698b4db7419b8298f7578

[CL 20445317 by George Rolfe in ue5-main branch]
2022-05-31 21:05:43 -04:00
George Rolfe
74b702da3b WebAPI uplugin details
#rb none
#jira none
#preflight none

[CL 20433747 by George Rolfe in ue5-main branch]
2022-05-30 22:28:46 -04:00
George Rolfe
7a4d761cbb WebAPI json utilities cleanup, custom node fixes
#jira UETOOL-4463
#rb none
#preflight 629419761154108e88b6cf20

[CL 20428236 by George Rolfe in ue5-main branch]
2022-05-29 21:30:22 -04:00
Leon Huang
19877e39c5 Fix for duplicate localization key warnings and missing localization defines/undefines in various files.
#rnx
#rb: Vincent.Gauthier
#jira: UE-151614
#preflight: 628fc4a98c23e52ef0fdfa7d

[CL 20384450 by Leon Huang in ue5-main branch]
2022-05-26 16:11: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
Tim Smith
855271a6d6 Fixed UWebAPIDefinition class to use AutoCollapseCategories instead of CollapseCategories.
#rb George.Rolfe
#preflight 626be8a67272eba608648abf

[CL 19978293 by Tim Smith in ue5-main branch]
2022-04-29 10:09:53 -04:00
George Rolfe
7397765836 WebAPI cis fix
#jira UE-147533
#rb none
#preflight 626746f1df6676d7e0d27e05

[CL 19916080 by George Rolfe in ue5-main branch]
2022-04-26 00:52:22 -04:00
George Rolfe
5290654cad WebAPI CIS fixes
#jira UE-147546
#jira UE-147533
#rb none
#preflight 62578b060b7c7f0f38d842fd
#preflight 62578b1e153630bb90f336c1

[CL 19765344 by George Rolfe in ue5-main branch]
2022-04-14 18:51:31 -04:00
George Rolfe
099c2eb85b WebAPI removed unused test case specs
#jira UE-148355
#rb none
#preflight 62563f41647ad886b36e19ca

[CL 19734182 by George Rolfe in ue5-main branch]
2022-04-12 23:21:04 -04:00
George Rolfe
9e710d0008 WebAPI non-unity fixes
#jira none
#rb simon.therriault
#preflight 62438b65c61d8a458f3240e0

[CL 19556793 by George Rolfe in ue5-main branch]
2022-03-30 10:24:34 -04:00
George Rolfe
e54c69d811 WebAPI re-submit
#rb simon.therriault
#jira UETOOL-4463
#preflight 62424a85c61d8a458f223a59

[CL 19540648 by George Rolfe in ue5-main branch]
2022-03-29 08:43:59 -04:00
George Rolfe
c0dfa210f6 WebAPI plugin removal (single file!)
#rb none
#jira none
#preflight 6241d4e8775402d5ddd7ee68

[CL 19528366 by George Rolfe in ue5-main branch]
2022-03-28 11:41:34 -04:00
George Rolfe
fbb4a6af93 WebAPI plugin temporarily removed (linux cis issue)
#rb none
#jira none
#preflight 6241d4e8775402d5ddd7ee68

[CL 19528310 by George Rolfe in ue5-main branch]
2022-03-28 11:38:53 -04:00
George Rolfe
76bbfb8259 WebAPI initial submission redux
#rb simon.therriault
#jira UETOOL-4463
#preflight 623fc3e58073508cfc1fbc78

[CL 19527360 by George Rolfe in ue5-main branch]
2022-03-28 10:54:41 -04:00
Marc Audy
0bafd433a9 Fix error: inline function 'FHttpHeader::IsValid' is not defined
Use MoveTemp for some additional strings
#codereview George.Rolfe
#rnx
#preflight

[CL 19521938 by Marc Audy in ue5-main branch]
2022-03-26 13:07:58 -04:00
George Rolfe
93b94d3e39 Http BP non-unity fix (from preflight 623bc700ec68595f3b9ce6b0)
#rb none
#preflight 623c8a469304d833f41c12f7
#jira none

[CL 19496602 by George Rolfe in ue5-main branch]
2022-03-24 11:47:08 -04:00
Simon Therriault
96b4827c3f - Delete Webapi plugin until proper preflight can be made
#rb none
#fyi george.rolfe
#jira none
#preflight 623103c1ac0173aa41245eee

[CL 19396510 by Simon Therriault in ue5-main branch]
2022-03-15 17:47:11 -04:00
George Rolfe
a4bda931df WebAPI fix
#cis fix
#jira none
#rb none
#preflight none

[CL 19391863 by George Rolfe in ue5-main branch]
2022-03-15 15:24:38 -04:00
George Rolfe
9521b51f2a WebAPI missing files pt2
#jira none
#rb none
#preflight none

[CL 19390753 by George Rolfe in ue5-main branch]
2022-03-15 14:48:46 -04:00
George Rolfe
bb7b91a345 WebAPI missing files
#rb none
#jira none
#preflight 6230dbde640ce2a64afc7d00

[CL 19390521 by George Rolfe in ue5-main branch]
2022-03-15 14:38:44 -04:00
George Rolfe
21d76e17ad WebAPI missing modules
#jira none
#rb none
#preflight 6230bd0dac0173aa411e5a06

[CL 19387955 by George Rolfe in ue5-main branch]
2022-03-15 12:50:43 -04:00
George Rolfe
77b13cfd93 WebAPI cisfix
#jira none
#preflight 622fee1c3d124155113e63c0
#rb none

[CL 19381818 by George Rolfe in ue5-main branch]
2022-03-14 22:11:37 -04:00
George Rolfe
5d4a229182 Http for Blueprint
#jira UETOOL-4465
#preflight 622febfb6065b4ecd3dd2858
#rb simon.therriault

[CL 19381806 by George Rolfe in ue5-main branch]
2022-03-14 22:09:21 -04:00
George Rolfe
b14533c5bd WebAPI
#jira UETOOL-4463
#preflight 622fa2d4ce577e3ab2d5d0cf
#rb simon.therriault

[CL 19379132 by George Rolfe in ue5-main branch]
2022-03-14 17:37:36 -04:00