Commit Graph

16 Commits

Author SHA1 Message Date
ben hoffman
1cfd429b17 Fix the display name on Player Mappable Configs in their asset creation factory. Now its consistent with the asset dipslay name.
#jira none
#rb trivial
#rnx
#preflight skip

[CL 20554489 by ben hoffman in ue5-main branch]
2022-06-08 07:20:11 -04:00
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
ben hoffman
39f8ee0c4b Exclude blueprint assets that have been marked for deletion in the content browser when we are building the enhanced input trigger defaults panel.
#jira UE-93458
#rb trivial
#preflight 62967495db7419b82988fed0
#rnx

[CL 20443183 by ben hoffman in ue5-main branch]
2022-05-31 17:56:10 -04:00
ben hoffman
9ac12530cf Add display names to the Enhanced Input developer settings and the EI editor settings
#jira none
#preflight 628d4259347b7778b6d1a3fb
#rnx
#rb trivial

[CL 20356481 by ben hoffman in ue5-main branch]
2022-05-24 17:39:54 -04:00
ben hoffman
cfab426af9 Add a style set for Enhanced Input so that the asset types have custom icons.
#jira UE-148432
#rb benjamin.fox
#preflight 6286c320045aba22797a5687

[CL 20296433 by ben hoffman in ue5-main branch]
2022-05-20 12:13:19 -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
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
ben hoffman
a46003c9e8 Add a missing 'ENHANCEDINPUT_API' to the Enhanced Input editor subsystem so that it can be used outside of the module
#jira none
#rb trivial
#rnx
#preflight 624dfe294c5db57ae60aad42

[CL 19656295 by ben hoffman in ue5-main branch]
2022-04-06 17:31:07 -04:00
ben hoffman
a81500a2d9 Fix a linux ASan error when shutting down the InputEditorModule. We can use ::StaticClass()->GetName because the UObject may be uninitalized already
#jira none
#rb none
#rnx
#preflight skip

[CL 19590001 by ben hoffman in ue5-main branch]
2022-04-01 12:19:08 -04:00
ben hoffman
0e0fe95da9 Refactor of the Enhanced Input Project Settings. This moves the Trigger and Modifier default value customizations to the "InputCustomizations" header file, and out of the InputEditorModule. This allows us to simply add a class customization for the Developer Settings, and combine the two setting panels.
#jira UE-144850
#rb andrew.davidson
#preflight 6245e42d8f066102242239d8

[CL 19577762 by ben hoffman in ue5-main branch]
2022-03-31 16:16:07 -04:00
ben hoffman
a6c74a4e0c Fix horde error where we needed "WITH_AUTOMATION_TESTS" in the test framework.
#jira UE-146088
#rb trivial
#rnx
#preflight 6234b92be14776a6ebd17178

[CL 19437699 by ben hoffman in ue5-main branch]
2022-03-18 13:08:00 -04:00
ben hoffman
26ef180e82 Only create the UEnhancedInputEditorSubsystem if we are WITH_EDITOR, and the FSlateApplication has been initalized. Otherwise we can't use it since there would be nothing to register the input preprocessor with. This solves issues with headless cooks crashing on initalize.
#jira none
#rb trivial
#rnx
#preflight 6233a1fd1302f69e9a4b6f19

[CL 19427491 by ben hoffman in ue5-main branch]
2022-03-17 17:36:27 -04:00
ben hoffman
1af53e6153 Enhanced Input Editor Subsystem. The Enhanced Input Editor subsystem will allow you to bind to Input Delegates in Editor Utility Actors or other Editor-time objects. The input is driven by an InputProcessor, and this subsystem will only incur any cost to the user if they manually enable it. This is useful for Virtual Production as it will allow physical input devices like cameras to make changes to an object's properties in the level.
#jira UE-144959
#rb phillip.kavan
#rb David.Hibbitts
#preflight 62326190f97ce4a8038a4f3a

[CL 19425960 by ben hoffman in ue5-main branch]
2022-03-17 16:10:59 -04:00
ben hoffman
b320776097 More TObjectPtr replacement for enhanced input
#jira UE-144847
#rnx
#rb trivial
#preflight 622f2824344901ad1917e453

[CL 19371838 by ben hoffman in ue5-main branch]
2022-03-14 08:52:59 -04:00
ben hoffman
46b5a82b18 Remove the unusable "Collection" input modifier. There is no use deprecating this because it was unusable. If you had it in one of your assets then it was not working in the first place and should throw an error. This also doesn't need deprecation because enhanced input is coming out of experimental, so we have the rights to remove stuff like this. No point in keeping the code rot around right from the beginning.
#jira UE-143918
#rb marc.audy
#preflight 62265f5d123eef55e6f6bdff

[CL 19290708 by ben hoffman in ue5-main branch]
2022-03-07 15:18:55 -05:00
ben hoffman
f67d3f3d13 Move the enhanced input plugin out of Experimental and into the normal /Engine/Plugins folder.
#jira UE-144847
#rb trivial
#preflight 62228bcf2f7d78332e1c4548

[CL 19277106 by ben hoffman in ue5-main branch]
2022-03-04 17:59:01 -05:00