12 Commits

Author SHA1 Message Date
Yoan StAmant
7c003b66f5 Fix CIS Issue 332657: NonUnity build for non editor targets
#rnx
#jira none

[CL 26440052 by Yoan StAmant in 5.3 branch]
2023-07-18 13:41:57 -04:00
Yoan StAmant
49877bfe35 [SmartObject] replaced icon for collection and actor. Also used for SmartObjectComponent and SmartObjectDefinition
#jira UE-189914
#rb mieszko.zielinski

[CL 26405451 by Yoan StAmant in 5.3 branch]
2023-07-17 09:11:33 -04:00
yoan stamant
c6f801834a [SmartObject] fixes to SmartObjectCollection build from the world partition builder
- unregisters collections before resetting them to update subsystem internal container and the runtime data. Collection are then registered back as empty collection ready to be populated.
- minor comments improvements
- force debug draw update when registering new objects
- fixed some reported warning regarding failed component unregistration
#rb mieszko.zielinski
#preflight 643e8699bf10538466518715

[CL 25085246 by yoan stamant in ue5-main branch]
2023-04-18 09:40:15 -04:00
yoan stamant
8dcb7648b8 [SmartObject] fixed container removal when multiple sequential entries could be removed in batch and properly recompute bounds.
#rb maxime.mercier
#preflight 642f1fa5427eda56265c935d

[CL 24961468 by yoan stamant in ue5-main branch]
2023-04-06 21:11:34 -04:00
yoan stamant
b3795626ae [SmartObject] updated smartobject handle to 64 bits to split handles that could be part of a collection or not (dynamic). This is a fix for dynamic ones to use a different id generation to prevent collisions.
#rnx
#rb mikko.mononen
#rb stephen.holmes
#preflight 642ee06928551807173e7fe6

[CL 24956833 by yoan stamant in ue5-main branch]
2023-04-06 17:03:24 -04:00
yoan stamant
bb96d7229f [SmartObject] fixed typo
#rb trivial
#rnx
#preflight 63cef923544e5bb075681b18

[CL 23824442 by yoan stamant in ue5-main branch]
2023-01-23 18:47:59 -05:00
henrik karlsson
9183978e29 [Engine/Plugins]
* Removed includes (using IWYU) in private files

#preflight 63c79978ac35a0e9dabbe408
#rb none

[CL 23770038 by henrik karlsson in ue5-main branch]
2023-01-19 00:48:07 -05:00
yoan stamant
4cf60160b5 [SmartObject] updated FSmartObjectHandleFactory::CreateSOHandle by refining the condition to strip the asset path string in partitioned world. We only want this for actors streamed by WorldPartitionLevelStreamingDynamic.
#rb patrick.enfedaque
#rb maxime.mercier
#rnx
#preflight none

[CL 23672863 by yoan stamant in ue5-main branch]
2023-01-12 20:38:26 -05:00
mieszko zielinski
6ff463500e StaticAnalysis fixes for SmartObjectPersistentCollection.cpp
#rb none
#preflight 63bc48e768068a8bd6f31072

[CL 23631765 by mieszko zielinski in ue5-main branch]
2023-01-10 15:20:16 -05:00
mieszko zielinski
5be4672ff9 Added a rendering component for SmartObjectContainerRenderingComponent
#preflight 639207de0236bc17ce31ddf5

[CL 23461403 by mieszko zielinski in ue5-main branch]
2022-12-09 03:39:11 -05:00
mieszko zielinski
bccb817a3f SmartObject registrations changes.
- SmartObject gained knowledge whether it was registered as a part of a colleciton, or as a dynamic smart object.
- cleaned up SmartObjectComponents SOHandle setting an resetting - there's a separate function for invalidating the handle.
- added handling of SmartObjectComponent's destruction (as opposed to unregistration due to being streamed out, potentially temporarily)

#preflight 638a25c74c3ce8ae5d20ba60

[CL 23389318 by mieszko zielinski in ue5-main branch]
2022-12-05 08:19:29 -05:00
mieszko zielinski
bf25520ccc SmartObject collection rework, introducing a FSmartObjectContainer type that encapsulates SmartObjectComponent registration and storage. The SmartObjectSubsystem now stores a Container that aggregates all other containers supplied by loaded/streamed in SmartObjectPersistentCollection instances.
In addition:
* SmartObjectCollection got deprecated and there's a auto-update path triggered in SmartObjectCollection::PostLoad
* SmartObjectComponent component can opt out of being a part of a collection with `bCanBePartOfCollection`
* Right now we limit SmartObjects to be registered with at most a single Collection. This might change in the future if required.

Note that this is the first change in a series, we're going to support miltiple collections per level with convenient ways of assigning SmartObjects to individual collections.

#jira UE-168977
#preflight 637f8faa4004f73f627ecaca

#preflight 637fa5378b12eb83a77ad7d9

[CL 23262132 by mieszko zielinski in ue5-main branch]
2022-11-24 14:53:52 -05:00