Commit Graph

96 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
david hibbitts
0951ef9c27 Initial support for Editor Input in VCam Modifiers
#ROBOMERGE-OWNER: mike.beach
#ROBOMERGE-AUTHOR: david.hibbitts
#ROBOMERGE-SOURCE: CL 20268251 via CL 20268295 via CL 20268304
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v943-19904690)

[CL 20269974 by david hibbitts in ue5-main branch]
2022-05-18 18:19:51 -04:00
Matt Peters
d64cf41728 AssetRegistry includes (Engine Plugins): change #include "AssetData.h" -> #include "AssetRegistry/AssetData.h", and similar for the other moved AssetRegistry headers.
#rb Zousar.Shaker
#rnx
#preflight 6270563191629533ec2b6f6e

[CL 20017756 by Matt Peters in ue5-main branch]
2022-05-02 18:59:38 -04:00
David Hibbitts
acaf050d08 Prevent VCamComponent from trying to access the Live Link Client during cook
#jira UE-148876
#preflight 6261c2d9d929bc34a3f64f63

[CL 19855948 by David Hibbitts in ue5-main branch]
2022-04-21 17:05:38 -04:00
David Hibbitts
6760598607 Made LiveLink a requirement of the VirtualCamera plugin
#jira UE-148876
#preflight 6261c2d9d929bc34a3f64f63

[CL 19855936 by David Hibbitts in ue5-main branch]
2022-04-21 17:04:39 -04:00
david hibbitts
15b3604a85 Added extra guards to VCam Component to prevent Output Providers initializing across MU sessions
#ROBOMERGE-OWNER: mike.beach
#ROBOMERGE-AUTHOR: david.hibbitts
#ROBOMERGE-SOURCE: CL 19795657 via CL 19795706 via CL 19795715
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v939-19570697)

[CL 19809669 by david hibbitts in ue5-main branch]
2022-04-19 11:38:49 -04:00
christopher waters
f8147b1889 Full set of fixes for non-unity non-pch builds after EngineTypes cleanup. This includes adjusting previous build fixes that introduced new includes that weren't actually necessary. Restored a few includes and wrapped them in UE_ENABLE_INCLUDE_ORDER_DEPRECATED_IN_5_1 checks to maintain compatability.
Also includes fixes for other build issues as it's hard to separate them all.

#jira too many to list
#rb none
#preflight 6247d21073665f7d5e6c5a6c

[CL 19600818 by christopher waters in ue5-main branch]
2022-04-02 01:04:02 -04:00
jason walter
793b6dd0c6 Fix include for -NoPCH builds
#jira UE-147725
#rb none
#preflight 62472dceb33098a72de01e1c

[CL 19591511 by jason walter in ue5-main branch]
2022-04-01 13:32:51 -04:00
jason walter
3494200bcf Fix non-unity build issue
#jira UE-146795
#rb none
#preflight none

[CL 19470188 by jason walter in ue5-main branch]
2022-03-22 14:57:54 -04:00
Marc Audy
602d40aa9e Mark handful VirtualProduction plugin modules as UncookedOnly
#rb Jason.Walter, Ryan.Mayeda
#preflight 61fb080cc431b6aac0467e79

[CL 18835471 by Marc Audy in ue5-main branch]
2022-02-02 17:47:37 -05:00
robert manuszewski
97b5e82c0b Deprecating EInternalObjectFlags::PendingKill. Making sure iterators use the appropriate flags based on the current state of PendingKill being enabled or not.
#preflight 61f8f33d537702981c352c7a
#rb Steve.Robb

#ROBOMERGE-AUTHOR: robert.manuszewski
#ROBOMERGE-SOURCE: CL 18806353 in //UE5/Release-5.0/... via CL 18808526 via CL 18821789
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v908-18788545)

[CL 18822151 by robert manuszewski in ue5-main branch]
2022-02-02 02:21:12 -05:00
jason walter
da6ccce355 Do not log an error if we are being destroyed.
#jira UE-1382222
#rb none
#preflight none

#ROBOMERGE-AUTHOR: jason.walter
#ROBOMERGE-SOURCE: CL 18547732 in //UE5/Release-5.0/... via CL 18547754
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v899-18417669)

[CL 18547811 by jason walter in ue5-release-engine-test branch]
2022-01-07 13:04:04 -05:00
jason walter
7bd49b802a Silence a mac warning
#jira UE-138357
#rb none
#preflight

#ROBOMERGE-AUTHOR: jason.walter
#ROBOMERGE-SOURCE: CL 18518963 in //UE5/Release-5.0/... via CL 18518972
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v899-18417669)

[CL 18518986 by jason walter in ue5-release-engine-test branch]
2022-01-05 10:21:56 -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
aurel cordonnier
a12d56ff31 Merge from Release-Engine-Staging @ 17791557 to Release-Engine-Test
This represents UE4/Main @17774255, Release-5.0 @17791557 and Dev-PerfTest @17789485

[CL 17794212 by aurel cordonnier in ue5-release-engine-test branch]
2021-10-12 21:21:22 -04:00
alejandro arango
61e312892b VirtualProduction: Merge from RES.
Except RemoteControl due to a dependency.

#rb

#ROBOMERGE-SOURCE: CL 17431226 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v865-17346139)

[CL 17431235 by alejandro arango in ue5-release-engine-test branch]
2021-09-04 02:44:38 -04:00
ben zeigler
ecfe4f6b6a Fix null access calling game-only functions on a non-game preview world
Issue was pointed out by Hector Centeno on github as my CL 17208151 triggered a crash for them
[CODEREVIEW] jason.walter

#ROBOMERGE-SOURCE: CL 17292413 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v861-17282326)

[CL 17292417 by ben zeigler in ue5-release-engine-test branch]
2021-08-24 16:01:08 -04:00
Marc Audy
e80ea6b959 Merge from Release-Engine-Staging @ 16444985
This represents UE4/Main @ 16445039 and Dev-PerfTest @ 16444526

[CL 16445122 by Marc Audy in ue5-release-engine-test branch]
2021-05-25 02:43:26 -04:00
jason walter
c6aed97e22 Remove Legacy code that was causing problems with PIE
#rb chris.norden
#jira UE-103677

#ROBOMERGE-SOURCE: CL 16332454 in //UE4/Release-4.27/... via CL 16348250
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Staging) (v804-16311228)

[CL 16359348 by jason walter in ue5-release-engine-staging branch]
2021-05-17 17:21:39 -04:00
Marc Audy
f02d489290 Update Release-Engine-Test from Release-Engine-Staging @ 16264272
[CL 16264458 by Marc Audy in ue5-release-engine-test branch]
2021-05-11 01:10:20 -04:00
UnrealBot
8afb476248 Branch snapshot for CL 16260158
[CL 16260158 in ue5-release-engine-staging branch]
2021-10-05 20:06:24 +00:00
phil popp
e736d346f9 Cleanup TAccessPtr
- Moved TAccessPtr<> member accessors to their own implementation file.
- Implemented specific derived classes for TAccessPtr<> to metasound frontend document sturctures.
- Fixed broken unit test
#jira UEAU-780
#rb Rob.Gay
#preflight 6099b8030ab4b200016c89f7

#ROBOMERGE-SOURCE: CL 16259814 in //UE5/Main/... via CL 16260152
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Test -> Release-Engine-Staging) (v799-16237190)

[CL 16260158 by phil popp in ue5-release-engine-staging branch]
2021-05-10 20:10:28 -04:00
aurel cordonnier
50944fd712 Merge UE5/RES @ 16162155 to UE5/Main
This represents UE4/Main @ 16130047 and Dev-PerfTest @ 16126156

[CL 16163576 by aurel cordonnier in ue5-main branch]
2021-04-29 19:32:06 -04:00
louise rasmussen
29faedf213 Level Editor Menu Clean Up, Part 3/3
#JIRA UETOOL-3039
#rb Lauren.Barnes
#lockdown Simon.Tourangeau
#preflight 606e39a450c0ee00014dc64a

#ROBOMERGE-SOURCE: CL 15948269 in //UE5/Release-5.0-EarlyAccess/...
#ROBOMERGE-BOT: STARSHIP (Release-5.0-EarlyAccess -> Main) (v787-15839533)

[CL 15950323 by louise rasmussen in ue5-main branch]
2021-04-07 22:22:12 -04:00
louise rasmussen
825c64a6f5 Level Editor Menu Re-org, Part 1
#JIRA UETOOL-3039
#rb Lauren.Barnes
#lockdown Simon.Tourangeau
#preflight 606b8e0315d4190001b1698b

#ROBOMERGE-SOURCE: CL 15924633 in //UE5/Release-5.0-EarlyAccess/...
#ROBOMERGE-BOT: STARSHIP (Release-5.0-EarlyAccess -> Main) (v786-15839533)

[CL 15924652 by louise rasmussen in ue5-main branch]
2021-04-05 19:11:24 -04:00