292 Commits

Author SHA1 Message Date
tiago costa
1f15f74a8c Don't replace the default local exposure settings specified in templates when creating a new project.
- for example, virtual production projects want to have local exposure disabled by default.

#rb
#jira UE-195152

#ushell-cherrypick of 27786211 by tiago.costa

[CL 27964101 by tiago costa in 5.3 branch]
2023-09-18 13:08:18 -04:00
tiago costa
078ead11d8 Change default Local Exposure settings (contrast scale set to 0.8).
- Enabled Local Exposure in new projects via project "Default Settings".
- Modified default Local Exposure values in PPV.

In order to keep PPV in existing projects unmodified, this change adds a new BranchObjectVersion so that when loading assets saved in previous engine version, the default values are set accordingly before deserialization happens.

#rb daniel.wright, marc.audy

[CL 26557337 by tiago costa in 5.3 branch]
2023-07-24 17:53:08 -04:00
yohann dossantos
ba41f5abfb - Added a per project Font display DPI setting, in order to allow using (but not being limited to) the standard 72 DPI used by most creation software (Photoshop, Figma,...). Slate will still work at 96DPI.
- Converted the font size to float, to allow specifying more precise size, and support the sizes that would be wanted at (for instance) 72 DPI, without losing information (ie rounding to the closest 96DPI int).
- Change various font caches behavior (glyph, advance, kerning...) to match behavior of Freetype, and ensure that a given size in Freetype will be stored only once in the font caches.
- Added cvar commands:
    - Slate.DumpFontCacheStats: will display the list of all font combinations used, with the number of glyphs for each combination.
    - Slate.FlushFontCache: will clear the font caches as well as the font atlases, then will invalidate all the widgets to force the cache to be refilled.
- Fixed the combo box for font typeface selection not disabled when necessary.

#tests:
- changed the Font display settings between various values and customDPI, validatet that everything was save correctly, and that the display was reacting to the value change.
- tested all the tooltips, simple, extended (ctrl + alt), and dynamic (display of the current DPI setting next to the font size).
- validated that the font atlas/cache was containing not more than one time each glyph rendered by Freetype.
- validated that the edition of the font size was still fully functionnal (spinbox, undo/redo, support of disable state,...).
- tested default value for a new project (72DPI).
- compiled Slate/SlateCore/UMG with UnsafeTypeCastWarningLevel = WarningLevel.Warning to fix warnings related to the change.
- tested in a game with latest changes from BP team (CL 26034633), ensuring that there are no regression related to the change of type (int to float) from the Font size.
- running with it in a game and UE branch for months.

#jira UE-152161
#rb patrick.boutot

[CL 26074535 by yohann dossantos in 5.3 branch]
2023-06-16 18:36:14 -04:00
joe kirchoff
581832117c Update BuildSettingVersion.Latest to V4
[CL 25881036 by joe kirchoff in ue5-main branch]
2023-06-08 16:11:38 -04:00
brooke hubert
e62fecb8a3 Look for parent class templates too when generating class header & class cpp files
Cherrypick CL 25662803
#jira none
#rb brooke.hubert
#preflight 6476010fc02f18c8f534fb50

[CL 25677056 by brooke hubert in ue5-main branch]
2023-05-30 10:23:58 -04:00
robert srinivasiah
8cfb3c3906 Remove OculusVR + Steam VR references
#jira UE-173787
#preflight 642d34af6a37fb35e976f51c
#rb Arciel.Rekman, Jeff.Fisher

[CL 24962180 by robert srinivasiah in ue5-main branch]
2023-04-06 23:23:09 -04:00
Jeff Fisher
64403c6f95 UE-181471 Delete SteamVR plugin.
-Deprecated in 5.1.  OpenXR should be used instead.
-A few instances of the string "SteamVR" remain.  In some case we are comparing to the OpenXR Runtime name, which remains correct.  In some we are searching input profile paths for SteamVR, which also remains correct.  VRScouting is doing the input profile path and then overriding VREditor's view of the xr plugin name, so at first glance VREditor still seems to be using SteamVR, but it actually does not depend on that (That code will likely be further refactored as time goes on).
#jira UE-181471
#preflight 64233be9803cb466e86ad33c
#review
#rb Arciel.Rekman

[CL 24825198 by Jeff Fisher in ue5-main branch]
2023-03-28 15:55:51 -04:00
alejandro aguilar
d147c97861 Added bUsesPresence as an attribute in EOS Sessions and Lobbies to retrieve it reliably instead of infering it from other data.
Wrapped new logic in config option bUseSessionPresenceAttribute.

#jira UE-179500
#review @Joe.Graf, @Rob.Cannaday, @Chris.Varnsverry, @Ryan.Hairyes, @Neil.Davidson
#preflight 6421722ac42c7fd1cb6e26bd

[CL 24800780 by alejandro aguilar in ue5-main branch]
2023-03-27 06:54:25 -04:00
Joe Kirchoff
18a92ca65c Update BuildSettingsVersion default for new projects
#jira UE-176989
#rb trivial
#preflight 63eebe4581646f1f2412ba51

[CL 24272958 by Joe Kirchoff in ue5-main branch]
2023-02-16 18:56:47 -05:00
aditya ravichandran
f8b7ee5555 Replace any instances of "Source Control" with "Revision Control" in text in the Editor
#rb JeanMichel.Dignard, Robb.Surridge
#preflight 637d180efa348e8480e8837e

[CL 23250808 by aditya ravichandran in ue5-main branch]
2022-11-23 11:57:50 -05:00
zach rammell
2a2d32bf63 Fix truncation warnings in GameProjectGeneration module
#jira UE-169486
#rb trivial
#preflight 636aa44e63037c10265d4c40

[CL 23033557 by zach rammell in ue5-main branch]
2022-11-08 13:52:08 -05:00
yohann dossantos
40c6f42de9 The property bIsVariable of the Widget class is now set accordingly to a project setting (bAuthorizeAutomaticWidgetVariableCreation) in the UserInterface category, when creating a new one.
-it will always be false if bAuthorizeAutomaticWidgetVariableCreation is false.
-it will take the setting of the widget it bAuthorizeAutomaticWidgetVariableCreation is true.
The setting is set to true for existing projects (it keeps the current behavior), but will be set to false for new project.
It can be changed any time, and will only affects the new Widgets that will be created.

tests:
-drag n drop various new Widgets, changed value of the general setting on the fly: the IsVariable value respected the setting.
-PIE Lyra game, all blueprints compiles fine and various tested menus / HUD are ok.
-opened a project of current version, or older project converted in place: new setting is true.
-created a new project: setting is set to false.


#jira UE-152160
#rb patrick.boutot
#preflight 6357ecd3f92c3250244311b9

[CL 22750497 by yohann dossantos in ue5-main branch]
2022-10-25 10:26:22 -04:00
christopher waters
f6e2d9e5f1 When creating a project from a template, don't attempt to override the DirectX settings. For one, this code can't handle arrays correctly, and two, the templates should all be configured correctly.
#jira UE-167378
#rb kenzo.terelst
#preflight 634efb024d3101c0ea41d452
#rnx
#lockdown Mihnea.Balta

[CL 22634770 by christopher waters in ue5-main branch]
2022-10-19 15:12:28 -04:00
tiago costa
43ae2325c8 Enable Extended Luminance Range for new projects by default
- Fix logic to also apply to projects created from template (doesn't overwrite template defined config if it has one).
- Removed deprecated option in Renderer Settings.
- Cleaned up branches around LuminanceMaxFromLensAttenuation(), since it's already applied inside the function.
- Templates are also updated to use ExtendedDefaultLuminanceRange.

#rb juan.canada
#fyi andreas.suika
#preflight 63344c29c7791417aafeadc7
#jira UE-143838

[CL 22221695 by tiago costa in ue5-main branch]
2022-09-28 10:18:39 -04:00
christopher waters
b424760427 New projects should start with D3D12 set to only support SM6.
#jira UE-162011
#rb mihnea.balta, kenzo.terelst
#preflight 631f4e13c75fcae76dc9aadd

[CL 21966864 by christopher waters in ue5-main branch]
2022-09-12 12:12:07 -04:00
sebastian nordgren
e8604ba396 The Project file out of date notification now fades away after 10 seconds.
This now makes sense to change now that dialogs don't fade out during loading.

#rb matt.kuhlenschmidt
#rnx

#ROBOMERGE-AUTHOR: sebastian.nordgren
#ROBOMERGE-SOURCE: CL 21108676 via CL 21108681 via CL 21108685
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v972-20964824)

[CL 21109746 by sebastian nordgren in ue5-main branch]
2022-07-15 10:13:08 -04:00
zach rammell
8ae1e2a024 Disallow creating projects with the same names as platform modules
Those projects cannot be loaded due to the modules conflicting.
#jira UE-147237
#rb brooke.hubert ronald.koppers
#preflight 62ba3171e77151e5998ea094

[CL 20842099 by zach rammell in ue5-main branch]
2022-06-27 18:47:42 -04:00
tuo chen
1a5b186cb9 Fix for missing MobileStarterContent.upack but the import checkbox is enabled, resulting import error
#rb wei.liu
#jira none
#preflight skip

[CL 20590332 by tuo chen in ue5-main branch]
2022-06-10 02:12:12 -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
Matt Kuhlenschmidt
36cc361039 Prevent starter content from overriding default maps with table and chairs map. We no longer want that to be the default if you include starter content in a new project
#jira UE-148389
#preflight none

[CL 20105621 by Matt Kuhlenschmidt in ue5-main branch]
2022-05-09 13:25:14 -04:00
Jon Nabozny
30f88d3533 Fix config warnings when loading templates.
#jira None
#preflight 62437590f4217035fa7239e2

[CL 19744414 by Jon Nabozny in ue5-main branch]
2022-04-13 15:32:48 -04:00
ryan schmidt
70cf2f8b24 Editor: explicitly enable Modeling Mode in code-generated blank template projects.
#rb matt.kuhlenschmidt
#jira UE-144458
#preflight 621f90c8901d830f36554c56
#rnx


#ROBOMERGE-AUTHOR: ryan.schmidt
#ROBOMERGE-SOURCE: CL 19223595 via CL 19223725 via CL 19223758 via CL 19223785 via CL 19226187
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v921-19075845)

[CL 19230202 by ryan schmidt in ue5-main branch]
2022-03-02 16:50:31 -05:00
aaron mcleran
158c3a5b16 Removing restricted platform names from file
#rb Maxwell.Hayes
#jira UE-130476
#preflight 6216c015a45a91013f430d08


#ROBOMERGE-AUTHOR: aaron.mcleran
#ROBOMERGE-SOURCE: CL 19106676 via CL 19107096 via CL 19107208 via CL 19107219 via CL 19110186
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v921-19075845)

[CL 19151559 by aaron mcleran in ue5-main branch]
2022-02-25 13:27:37 -05:00
kenzo terelst
294ee71d37 New projects always have DX12 by default on Windows
#jira UE-143062
#rb Mihnea.Balta
#preflight 620e3a65fe76023596bed597

#ROBOMERGE-AUTHOR: kenzo.terelst
#ROBOMERGE-SOURCE: CL 19074102 in //UE5/Release-5.0/... via CL 19090522
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v921-19075845)

[CL 19134975 by kenzo terelst in ue5-main branch]
2022-02-24 20:00:22 -05:00
ben marsh
8b7d41a8ef Fix replacement strings in templates being garbled if the project name contains the template name.
#jira UE-132388
#preflight none

#ROBOMERGE-AUTHOR: ben.marsh
#ROBOMERGE-SOURCE: CL 18586773 in //UE5/Release-5.0/... via CL 18586792 via CL 18586821
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Test -> Main) (v899-18417669)

[CL 18586841 by ben marsh in ue5-main branch]
2022-01-12 13:14:25 -05:00