Commit Graph

263 Commits

Author SHA1 Message Date
Matt Peters
935f838fc3 OneFilePerActor: Fix deletion of empty __ExternalActor__ directories to not try (and fail) to delete the root __ExternalActor__ directory if it is out of subdirectories.
#jira UE-194493
#rb JeanFrancois.Dube
#rnx

[CL 27589288 by Matt Peters in ue5-main branch]
2023-09-04 16:23:54 -04:00
vincent beauchemin
cf6e98cd46 World Partition Editor
* Upgrade overall UX (new icons, new menus, new toolbar, new layout)
* Now possible for licensees to extent options in our menus.
* Add same LevelViewport actions in the WP Editor (Build Hlods, build minimap, etc.) via new Build menu.

#rb jeanfrancois.dube
#jira UE-171044

[CL 27527223 by vincent beauchemin in ue5-main branch]
2023-08-31 12:53:27 -04:00
jeanfrancois dube
62f0004628 World Partition: cleanup empty folders from external packages to reduce the time spent parsing these from the Asset Registry parse.
#jira UE-193953
#rb sebastien.lussier, richard.malo

[CL 27480916 by jeanfrancois dube in ue5-main branch]
2023-08-30 07:02:33 -04:00
patrick enfedaque
b697e201cf ActorEditorContext
- Add FScopedActorEditorContextFromActor which pushes a new context based on the provided actor (will be used in next Foliage CL)
- Implemented through IActorEditorContextClient(s) with EActorEditorContextAction::InitializeContextFromActor
- Remove Adding of DataLayers in ActorPartitionSubsystem as this will be done by the DataLayerEditorSubsystem through the active editor context
- Properly support ContextBundles in ActorPartitionSubsystem to generate unique name
- Cleanup APartitionActor naming API + Labels

#rb richard.malo
#rnx

[CL 27309490 by patrick enfedaque in ue5-main branch]
2023-08-23 12:21:45 -04:00
vincent beauchemin
06534e900c World Partition
* Add an editor preference to log the generate streaming in PIE (default true).

#rb jeanfrancois.dube
#jira UE-184644

[CL 26808155 by vincent beauchemin in ue5-main branch]
2023-08-03 09:09:27 -04:00
jeanfrancois dube
1ffe02952d Partial backout of 26614803 for "fix non spatial newly created/saved actor being unloaded after PIE".
When an actor descriptor is added, add it to the always loaded loader if its non spatially loaded.
Also fix duplicate actor descriptors in the dirty actor list since recent changes.

#jira UE-185983
#rb vincent.beauchemin
[FYI] patrick.enfedaque

[CL 26734890 by jeanfrancois dube in ue5-main branch]
2023-08-01 07:19:06 -04:00
richard malo
5baf188939 WorldPartition: Added IsListedInSceneOutliner in WorldPartitionActorDesc and use it to hide unloaded ActorDescItems in the World Outliner. It is also used to hide actor bounds in World Partition Editor.
#rb patrick.enfedaque
#jira UE-191295

[CL 26636014 by richard malo in ue5-main branch]
2023-07-27 07:07:59 -04:00
derek truong
467ce30f8a [UEFN] Adding documentation redirect for streaming and hlods so we open proper UEFN documentation page. Undoing changes in CL 23917904 to utilize documentation redirect system.
#rb rex.hill
[FYI] jamie.dale
#rnx

[CL 26522517 by derek truong in ue5-main branch]
2023-07-21 15:26:01 -04:00
vincent beauchemin
7652f4c49a [Backout] - CL26290283
Original CL Desc
-----------------------------------------------------------------
[Backout] - CL26287803 for CIS error.
#rnx
Original CL Desc
-----------------------------------------------------------------
World Partition
* Add new unsaved actors into the DirtyActors set. Useful to see unsaved LocationVolume on the WP Editor.
* Make sure we clean DirtyActors when CB content is removed.

#rb jeanfrancois.dube

[CL 26308344 by vincent beauchemin in ue5-main branch]
2023-06-29 08:03:05 -04:00
hilda cruz
bea92468a4 [Backout] - CL26287803 for CIS error.
#rnx
[FYI] vincent.beauchemin
Original CL Desc
-----------------------------------------------------------------
World Partition
* Add new unsaved actors into the DirtyActors set. Useful to see unsaved LocationVolume on the WP Editor.
* Make sure we clean DirtyActors when CB content is removed.

#rb jeanfrancois.dube

[CL 26290314 by hilda cruz in ue5-main branch]
2023-06-28 13:15:19 -04:00
vincent beauchemin
a08bf901d7 World Partition
* Add new unsaved actors into the DirtyActors set. Useful to see unsaved LocationVolume on the WP Editor.
* Make sure we clean DirtyActors when CB content is removed.

#rb jeanfrancois.dube

[CL 26287846 by vincent beauchemin in ue5-main branch]
2023-06-28 12:08:33 -04:00
vincent beauchemin
51cb5e9cf3 Content Bundle
* Move Content Bundle events into Engine (needed by World Partition).
* Add ContentBundleRemovedContent event.

#rb philippe.deseve, jeanfrancois.dube

[CL 26284475 by vincent beauchemin in ue5-main branch]
2023-06-28 10:14:35 -04:00
jeanfrancois dube
f1af40377b World Partition Editor Loading:
- Changed Editor Settings 'DisableLoadingInEditor' to 'EnableLoadingInEditor' to be easier to understand for entry-level users.
- Actors loading state will now react to changing Editor Settings 'EnableLoadingInEditor' property.

#rb vincent.beauchemin
[FYI] francisco.cabrita, jeansebastien.guay

[CL 26263924 by jeanfrancois dube in ue5-main branch]
2023-06-27 13:50:48 -04:00
jeanfrancois dube
d293cf5950 World Partition Editor: don't highlight loader adapters that aren't loaded.
#rb none

[CL 26254216 by jeanfrancois dube in ue5-main branch]
2023-06-27 07:17:35 -04:00
vincent beauchemin
cf4211a36a Add missing include (ScopedTransaction)
[CL 26183586 by vincent beauchemin in ue5-main branch]
2023-06-22 11:21:06 -04:00
vincent beauchemin
836590445f World Partition Editor QoL
* Make sure we can only play with the Loaded Regions & related streaming features when the streaming is enabled. Hide the loaded regions when we toggle the Streaming enable so we keep them.
* When converting a Loaded Region to LocationVolume, make sure we have an incremental label for the user.
* Make sure the scaling gizmo would be intuitive on the Location Volume (after converting a loaded region) by scaling the brush instead of the actor.
* Fixed : Converting a loaded region into an asset does not count as a transaction on the undo history, but deleting it from the viewport or the outliner does.

#rb jeanfrancois.dube

[CL 26181458 by vincent beauchemin in ue5-main branch]
2023-06-22 10:08:24 -04:00
vincent beauchemin
12cdd800ff * [SceneOutliner] Using Load and Unload selected volumes context menu options for LocationVolume in the Outliner does not grey out these options.
#rb jeanfrancois.dube

[CL 26180633 by vincent beauchemin in ue5-main branch]
2023-06-22 09:27:16 -04:00
sebastien lussier
b11dee715c WorldPartition - Editor: When outputting the content of commandlets in case of errors, write each line with the correct verbosity.
* This is needed for visibility, as UEFN is now filtering out everything except warning & errors by default
#patrick.enfedaque

[CL 26157481 by sebastien lussier in ue5-main branch]
2023-06-21 15:00:41 -04:00
joe kirchoff
fc49b3b34f Fix C4855: implicit capture of 'this' via '[=]' is deprecated in '/std:c++20'
#rnx

[CL 26110412 by joe kirchoff in ue5-main branch]
2023-06-19 19:55:34 -04:00
patrick enfedaque
6d2522df6a WorldPartition: Make sure LastLoadedRegion FBox are valid
- Fixes new Empty Open World saving a invalid LastLoadedRegion
- Spatial loader adapters created with invalid bounds will not load any actors and ensure on creation

#rb jeanfrancois.dube
#rnx

[CL 25926702 by patrick enfedaque in ue5-main branch]
2023-06-12 08:28:46 -04:00
patrick enfedaque
36a35ce76a LevelInstance: Deprecate CanBeUsedByLevelInstance.
- Runtime: Level Instances that are WP will still get embedded in their parent world grid (independent of the value of bEnableStreaming)
- Editor: Level Instances with bEnableStreaming=true will now act as regular World Partitions when loaded on their own. Allowing for big Level Instances to be partially loaded outside of their owning world.
- Add Project Setting for default value to assign to new Level Instances

#rb jeanfrancois.dube, richard.malo

[CL 25926203 by patrick enfedaque in ue5-main branch]
2023-06-12 07:30:42 -04:00
patrick enfedaque
5dde75b396 LevelInstance: Edit now shows a transient filter that can be changed to allow editing of the source Level, this filter isn't modifying the current LevelInstance filter. Filter is restored when exiting edit.
#rb richard.malo
#rnx

[CL 25870631 by patrick enfedaque in ue5-main branch]
2023-06-08 10:14:43 -04:00
jeanfrancois dube
8edc26ed74 When converting a world to world partition, reconstruct the world partition editor to reflect the change.
#rb vincent.beauchemin
#preflight 647931f58417d792593700f4

[CL 25759625 by jeanfrancois dube in ue5-main branch]
2023-06-02 09:52:12 -04:00
jeanfrancois dube
9ebf09d5a7 World Partition UEFN Support:
- Exposed DisableLoadingInEditor in the project settings, which defaults to true in UEFN and false in UE5.
- Reenabled World Partition Editor tab and loading regions when DisableLoadingInEditor is false.

#rb vincent.beauchemin
#preflight none

[CL 25627469 by jeanfrancois dube in ue5-main branch]
2023-05-25 15:59:36 -04:00
jeanfrancois dube
d9dbc4d84b Fix conflicting changes from two different branches.
#rb none
#preflight none

[CL 25592331 by jeanfrancois dube in ue5-main branch]
2023-05-23 18:15:30 -04:00