Commit Graph

12 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
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
Jared Therriault
a024b62cbe nDisplay Launch:
-MU flow changes

#jira UE-151224
#rb Jason.Walter

#preflight https://horde.devtools.epicgames.com/job/6286c06c9016c6dd89a29fa1

[CL 20289642 by Jared Therriault in ue5-main branch]
2022-05-19 20:46:21 -04:00
lauren barnes
ae96704e9c Removing EditorStyleSet.h includes
#rb trivial

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

[CL 20106472 by lauren barnes in ue5-main branch]
2022-05-09 13:56:34 -04:00
Geoffrey Douglas
00df3f8b71 Fix duplicated keys for localization - UE - Virtual Production
#jira UE-150821
#rb simon.therriault
#preflight 627533a6d8373707f213e8cb

[CL 20076002 by Geoffrey Douglas in ue5-main branch]
2022-05-06 10:58:05 -04:00
Jared Therriault
ed6ae9a298 nDisplay Launch:
-Add Unreal Insights support
-Minor UI polish

#jira UE-146955
#rb Jason.Walter

#preflight https://horde.devtools.epicgames.com/job/626882f92f53f9169a8dfc6b

[CL 19945934 by Jared Therriault in ue5-main branch]
2022-04-27 16:14:42 -04:00
Jared Therriault
41be33870d nDisplay Launch:
-Warn the user if multi-user is already running and confirm that the user want to launch

#jira UE-150171
#rb Jason.Walter
#preflight https://horde.devtools.epicgames.com/job/6267148b0231ca6c0da112a8

[CL 19924410 by Jared Therriault in ue5-main branch]
2022-04-26 13:44:59 -04:00
Jared Therriault
d659c21ed1 nDisplay Launch
-Apply nDisplay Config overrides

#rb Jason.Walter
#jira UE-149115
#preflight 625f4524dd47b4ad214b8625

[CL 19908131 by Jared Therriault in ue5-main branch]
2022-04-25 16:10:22 -04:00
Jared Therriault
680c3a8732 nDisplay Launch
-Icons pass (Toolbar and menu)

#rb None
#jira UE-146948
#preflight 6257871e6520cc71239c1cc3

[CL 19750847 by Jared Therriault in ue5-main branch]
2022-04-13 23:05:59 -04:00
Jared Therriault
c978b34b4e nDisplay Launch
-Change AllowListPlatforms in uplugin to PlatformAllowList

#rb Jason.Walter
#jira None
#preflight None

[CL 19746873 by Jared Therriault in ue5-main branch]
2022-04-13 18:13:46 -04:00
Jared Therriault
7df8875763 nDisplay Launch:
-Update uplugin from using Whitelist to Allowlist
-Add options to auto-generate or specify Concert Server and Session names
-Use content path instead of absolute path for Map asset argument
-Register settings before generating toolbar button
-Add launch state detection enum to inform the toolbar button icon/behaviour based on whether nodes have been launched
-Make default log level "Log" in project settings

#jira UE-146953

#rb Jason.Walter
#preflight 625659603e1d412540eac773

[CL 19745276 by Jared Therriault in ue5-main branch]
2022-04-13 16:22:50 -04:00
Jared Therriault
890a384301 Console Variables Editor:
-Remove unnecessary include (needed change for external files to include Asset header)

nDisplay Launch:

-Initial Commit

#jira UE-146947
#jira UE-146948
#jira UE-146953
#jira UE-146954

#rb Jason.Walter

#preflight 624dd6a58d1db441a9246adf

[CL 19671122 by Jared Therriault in ue5-main branch]
2022-04-07 12:15:18 -04:00