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]
A CVar (ds.IFC.EnableNativeTranslator) allows to enable UE native IFC translator.
#rb jeanluc.corenthin
#preflight 6290e9e7183e241099c84df6
[CL 20394468 by David Lesage in ue5-main branch]
Enable CADkernel
#jira UE-150925 Add Alias 2023.0 SDK
#rb jeanluc.corenthin
#preflight 6290ea47fe5e30102ab06e2b
[CL 20394287 by David Lesage in ue5-main branch]
#rb Paul.Chipchase, PJ.Kack, CarlMagnus.Nordin
#jira none
#preflight 629085d14f63120d8e170977
###
This change attempts to merge the editor and the runtime version of bulk data, i.e. bulk data one and two.
The major difference between the two is the fact that the editor version supported element vice
serialization via inheritance. This has been complelety removed in the runtime version. In order
to mitigate this divergance a non-virtual base class has been extracted that forms the base
for the untyped and typed versions of bulk data.
The untyped version is only used in editor and will be deprecated. However this is a breaking change,
previously it was possible to inherit from FByteBulkData in editor builds.
Other differences between the two includes:
* IsBulkDataLoaded - returns true for bulk data 1 if an allocation has been made even if the size is zero
* StartStreaming - was removed in bulk data 2 and has been removed
* FlushAsyncLoading - bulk data 2 was busy waiting, now an event is used
All I/O related functionality has been extracted into BulkDataStreaming.cpp and is using
a FBulkDataChunkId that is either a package path or a package ID.This could potentially
be extended to contain a cache key in development builds to support loading from DDC, i.e derived
data references.
[CL 20391050 by Per Larsson in ue5-main branch]
#jira UE-150398 / UE-144502: CAD - not all expected materials are created upon importing assemblies
FTechSoftFileParser::TraverseBRepModel: Default material was not applied from parent
#jira UE-150565: Cad - imported static mesh names are too generic to be used in a dataprep context
#jira UE-148504: Alias wire import mesh names are inconsistent with original file
#jira UE-139703: Inventor actors imported into UE via Datasmith have incorrect names
#jira UE-149540: Datasmith does not assign Rhino imported materials on corresponding meshes
Static mesh from Rhino has its unique material at slot 0 while other CAD import (from techsoft or Alias) static mesh can have many material and the slot of the material is defined by the material/color components.
To respect the mecanisme of other CAD import, BRep from Rhino is added of a color that has a slotId = 0. This color is (0, 0, 0, 0)
The Rhino import will be improve like Alias import to allow static mesh with multiple of materials (jira UETOOL-5196)
#jira UE-143899: UE.EditorAutomation(RunTest=Editor) Win64 - Editor.Python.EngineTest.Pipeline.Datasmith
Revert to revision 2 + adapt value to TechSoft tessellation and TechSoft material
#jira UE-152505: In the particular case of CATProduct referencing CGR, the external file is defined as a externalData vs an "empty" Occurence in the other case
#jira UE-131465: In the case of a body that generate an Empty mesh, a break point is triggered. The ensureMsg is replace by a message in the log.
#jira UE-133180: the error logged has been fixed by preventing the creation of empty StaticMesh (ps. the cannot be done with Alias and Rhino)
#preflight 62854966614041edb7a05036
#rb jeanluc.corenthin
[CL 20267096 by David Lesage in ue5-main branch]
When importing a scene using a lot of unsupported texture formats, the asynchronous logging of those errors would make the editor crash.
#preflight 627e92016423fc4fa7ecfde6
[CL 20183737 by benoit deschenes in ue5-main branch]
#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]