Commit Graph

129 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
jason walter
e7634b0859 Add working and saved directory configuation options to multi-user server.
#jira UE-153086
#rb zach.brockway
#preflight 6295065aca156387094af697

[CL 20441137 by jason walter in ue5-main branch]
2022-05-31 16:05:02 -04:00
jason hoerner
0267d53323 DisplayCluster: Virtual Shadow Map cache can optionally be allocated per view, and enabled that feature for Virtual Production. Significant performance win by avoiding constant cache thrashing when rendering multiple families. Frame time goes from ~45 ms to ~26 ms for Valley test scene (Node 2), GPU bound in both cases. Separate cache per view isn't implemented for split screen views (single view family with multiple views), but Virtual Production doesn't use that, and support for that could be added in the future.
#jira UE-142732
#rb andrew.lauritzen ola.olsson
#preflight 628d06a45c3ef99a7b2fffa3

[CL 20351116 by jason hoerner in ue5-main branch]
2022-05-24 13:17:13 -04:00
jason walter
ed799330a4 Create separate program UnrealMultiUserSlateServer
Main implementation by Dominik with build and switchboard support added by me.

#jira UE-147235
#rb Dominik.Peacock
#preflight 6284fa081f474f0660ecb74e

[CL 20264867 by jason walter in ue5-main branch]
2022-05-18 14:02:54 -04:00
Alejandro Arango
499b6d75b9 Switchboard: Make Save Config As do a copy instead of replace of the config file.
Project name is also now updated accordingly.

#jira UE-152688
#rb
#preflight

[CL 20245172 by Alejandro Arango in ue5-main branch]
2022-05-17 12:22:53 -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
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
Alejandro Arango
7f4fa752c4 Switchboard: Fix LocDuplicates
#rb
#jira UE-150821
#preflight 62707c2a592316675c37a305

[CL 20019039 by Alejandro Arango in ue5-main branch]
2022-05-02 21:01:16 -04:00
zach brockway
f225a1a42a Switchboard: Use Build.bat/Build.sh instead of invoking UnrealBuildTool.exe directly. Resolves error "The framework 'Microsoft.NETCore.App', version '6.0.0' was not found."
#jira UE-150338
#rb jason.walter, matt.johnson
#preflight skip

[CL 19942294 by zach brockway in ue5-main branch]
2022-04-27 13:01:47 -04:00
Alejandro Arango
26289405a3 Switchboard: Removed leftover log.
#rb
#jira
#preflight

[CL 19857203 by Alejandro Arango in ue5-main branch]
2022-04-21 18:31:56 -04:00
Lukas Kundelis
9ea7fa6c76 Added setting to launch multi-user server in slate mode
#jira UE-145782

#rb Jason.Walter

[CL 19558035 by Lukas Kundelis in ue5-main branch]
2022-03-30 11:37:34 -04:00
Alejandro Arango
1af72b1e56 Switchboard: Added "Create Config" menu item.
This automates the creation of a Switchboard config from the current map and nDisplay actor, automating this per-user drudgery. SB and SBL will be auto-launched and the config will be created and opened automatically. The user can opt to have the devices auto-connect, or also have all the ip addresses be overridden with localhost.

The user can also pick the nDisplay instance to use (when there are more than one), and select how many Editor devices he wants created. With was done w/o adding any plugin dependencies.

In addition:
* Configs can now be "Saved As" and loaded to/from anywhere on disk.
* SBL now auto-builds if necessary when launching from the Editor
* Users can now pass python scripts and arbitrary arguments for them using the --script and --scriptargs cmd line arguments, and if the script contains a subclass of SwitchboardScriptBase, its callbacks will be called at certain times of SB lifetime. In particular, during initialization. This enables certain externally driven automation of SB, and is how the automated creation of new configs is done by Unreal.

#rb zach.brockway
#jira none
#preflight 624270eac51908059a92580c

[CL 19536887 by Alejandro Arango in ue5-main branch]
2022-03-28 22:48:29 -04:00
Lukas Kundelis
144577b542 Take number auto increments now.
#jira UE-115000

#rb jason.walter

[CL 19361431 by Lukas Kundelis in ue5-main branch]
2022-03-11 16:53:01 -05:00
Lukas Kundelis
2f79f439b0 Searchable ComboBox addition
#jira UE-138185

#rb jason.walter

[CL 19324000 by Lukas Kundelis in ue5-main branch]
2022-03-09 14:13:36 -05:00
Dominik Peacock
d017c2c53a Move SCustomDialog from UnrealEd to ToolWidgets
Unshelved from pending changelist '19221005':

#jira none
#rb Sebastian.Nordgren
#preflight 622105f6a00412627d0743ed

[CL 19311394 by Dominik Peacock in ue5-main branch]
2022-03-08 16:29:24 -05:00
alejandro arango
f66a25887f Switchboard: Disable virtual shadow map cache until it supports multi-viewfamily.
#rb jason.hoerner
#jira UE-143950
#preflight none

#ROBOMERGE-AUTHOR: alejandro.arango
#ROBOMERGE-SOURCE: CL 19259526 in //UE5/Release-5.0/... via CL 19260238
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v924-19243027)

[CL 19264032 by alejandro arango in ue5-main branch]
2022-03-04 04:24:46 -05:00
Lukas Kundelis
e5f30e8983 Config file made read only
also any String setting has gotten that option now as well.
#jira UE-142183

#rb jason.walter

[CL 19247713 by Lukas Kundelis in ue5-main branch]
2022-03-03 13:38:01 -05:00
zach brockway
fd1b958766 Switchboard: sbl_helper: Fix path to GenerateProjectFiles on Linux.
#preflight skip
#jira UE-144265
#lockdown alejandro.arango
#rb matt.johnson


#ROBOMERGE-AUTHOR: zach.brockway
#ROBOMERGE-SOURCE: CL 19210729 via CL 19211099 via CL 19211982 via CL 19212048 via CL 19212188
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v921-19075845)

[CL 19224224 by zach brockway in ue5-main branch]
2022-03-02 13:15:10 -05:00
zach brockway
f25f4c0a42 SwitchboardEditor: Don't hide toolbar button on platforms that don't support creation of shortcuts.
#preflight 62196f55f42b41f97a5a401c
#jira UE-143357
#lockdown alejandro.arango
#rb matt.johnson

#ROBOMERGE-AUTHOR: zach.brockway
#ROBOMERGE-SOURCE: CL 19162208 in //UE5/Release-5.0/... via CL 19162338
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v921-19075845)

[CL 19162496 by zach brockway in ue5-main branch]
2022-02-25 20:50:00 -05:00
zach brockway
ce6e84973a Switchboard: Fix a handful of user-facing references to "UE4".
#preflight skip
#jira UE-143903
#lockdown alejandro.arango
#rb matt.johnson

#ROBOMERGE-AUTHOR: zach.brockway
#ROBOMERGE-SOURCE: CL 19162206 in //UE5/Release-5.0/... via CL 19162331
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v921-19075845)

[CL 19162495 by zach brockway in ue5-main branch]
2022-02-25 20:49:54 -05:00
zach brockway
e39aad5b9f Switchboard: Don't potentially query Perforce for every keystroke in the engine CL combo.
#preflight skip
#jira UE-143505
#lockdown alejandro.arango
#rb matt.johnson

#ROBOMERGE-AUTHOR: zach.brockway
#ROBOMERGE-SOURCE: CL 19162199 in //UE5/Release-5.0/... via CL 19162328
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v921-19075845)

[CL 19162493 by zach brockway in ue5-main branch]
2022-02-25 20:49:46 -05:00
zach brockway
de9afe1c7a Switchboard: Use Qt functionality for "explore directory," "copy to clipboard," and "open file with default application." Fixes various issues with non-Windows platforms.
#preflight skip
#jira UE-142404
#lockdown alejandro.arango
#rb matt.johnson

#ROBOMERGE-AUTHOR: zach.brockway
#ROBOMERGE-SOURCE: CL 19069578 in //UE5/Release-5.0/... via CL 19090193
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v921-19075845)

[CL 19132705 by zach brockway in ue5-main branch]
2022-02-24 19:20:44 -05:00
zach brockway
30b04a9900 Switchboard: Pass correct target platform during builds, rather than hardcoded Win64.
#preflight skip
#jira UE-142416
#lockdown alejandro.arango
#rb matt.johnson

#ROBOMERGE-AUTHOR: zach.brockway
#ROBOMERGE-SOURCE: CL 19069536 in //UE5/Release-5.0/... via CL 19090188
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v921-19075845)

[CL 19132642 by zach brockway in ue5-main branch]
2022-02-24 19:19:58 -05:00
zach brockway
dc16967af7 Switchboard: Use correct path to engine python executable on non-Windows platforms.
#preflight skip
#jira UE-142415
#lockdown alejandro.arango
#rb matt.johnson

#ROBOMERGE-AUTHOR: zach.brockway
#ROBOMERGE-SOURCE: CL 19069513 in //UE5/Release-5.0/... via CL 19090184
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v921-19075845)

[CL 19132629 by zach brockway in ue5-main branch]
2022-02-24 19:19:52 -05:00
alejandro arango
cf0222f943 Switchboard: Fix missing muserver and trace settings when a new config is created. Alos show project name in window title.
#rb zach.brockway
#jira UE-143396
#preflight none

#ROBOMERGE-AUTHOR: alejandro.arango
#ROBOMERGE-SOURCE: CL 19068637 in //UE5/Release-5.0/... via CL 19088004
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v921-19075845)

[CL 19130735 by alejandro arango in ue5-main branch]
2022-02-24 18:49:15 -05:00