154 Commits

Author SHA1 Message Date
yoan stamant
1c0ec90ee8 [SmartObject] removed deprecated methods
#rb yoan.stamant

[CL 35976679 by yoan stamant in ue5-main branch]
2024-09-03 15:22:14 -04:00
yoan stamant
4376c17f29 [SmartObject] minor changes to make it easier to extend the functionalities
#rb Maxime.Mercier

[CL 35975110 by yoan stamant in ue5-main branch]
2024-09-03 14:49:39 -04:00
yoan stamant
e64eebd374 [SmartObject] clear cached asset variation when the base asset gets saved.
#jira UE-221754
#rb Maxime.Mercier

[CL 35544857 by yoan stamant in ue5-main branch]
2024-08-14 15:42:52 -04:00
yoan stamant
f92989fb33 Fixed include paths following StructUtils being moved to CoreUObject
#jira UE-216472
#rb devin.doucette

[CL 34513428 by yoan stamant in ue5-main branch]
2024-06-19 16:42:16 -04:00
jamie dale
296030749e Update existing code to use CollectSaveOverrides rather than PreSave to AddSaveOverride
#rb josh.may, scott.nelson, Yoan.StAmant
#rnx

[CL 34075985 by jamie dale in ue5-main branch]
2024-06-03 16:34:44 -04:00
ben hoffman
fa995f2781 Add "DeterminesOutputType" metadata on the GetBehaviorDefinition BP functions in the smart object subsystem.
#rb Yoan.StAmant
#rnx

[CL 33869831 by ben hoffman in ue5-main branch]
2024-05-23 14:39:41 -04:00
yoan stamant
47369fe7a4 [SmartObject] Validate definition asset on post load
- Enabled GameplayDebuggerCategory in Test builds
- Added debug labels when UE_DEBUG_DRAWING is not defined so at least we can have text at smartobject/slot locations
#jira UE-211487
#rb Mieszko.Zielinski, mikko.mononen

[CL 32853860 by yoan stamant in ue5-main branch]
2024-04-10 08:22:36 -04:00
yoan stamant
aed5727451 [WorldCondition] do not allow move or copy of FWorldConditionContext and FWorldConditionContextData
#rb mikko.mononen, jeff.rubin

[CL 32597651 by yoan stamant in ue5-main branch]
2024-03-28 18:06:32 -04:00
yoan stamant
25f48711f6 [SmartObject] another tweak to the deprecation to replace blueprint compilation errors by warnings.
#rb Arciel.Rekman

[CL 32248367 by yoan stamant in ue5-main branch]
2024-03-14 12:28:05 -04:00
yoan stamant
fa692dde01 [SmartObject] updated deprecation by restoring previous property as deprecated and moving deprecation code from PostLoad to Serialize to fix issues where result differ when parent is fully loaded first or is loaded by a child.
Added some additional code as a workaround to the fact that Serialize is not called on CDO.
#rb mikko.mononen

[CL 32188938 by yoan stamant in ue5-main branch]
2024-03-12 15:36:22 -04:00
mikko mononen
f736e66d88 SmartObject: Fix potential nullptr access in GetDefinitionData()
#rb Mieszko.Zielinski

[CL 31900579 by mikko mononen in ue5-main branch]
2024-02-29 02:59:29 -05:00
yoan stamant
d9bd829874 [SmartObjects] display options in the GameplayDebugger are now replicated to properly display their status on the client
#rb Aris.Theophanidis

[CL 31580641 by yoan stamant in ue5-main branch]
2024-02-16 16:28:56 -05:00
yoan stamant
d923f77922 [SmartObject] adding support for SmartObjects on actor instances:
- mass tag, fragments to create/destroy smart objects for entities
- project specific interop component for instanced actors
#rb Mieszko.Zielinski, mikko.mononen

[CL 31484049 by yoan stamant in ue5-main branch]
2024-02-14 13:25:25 -05:00
yoan stamant
846104152a [SmartObject] owner component needs to be set before activating world conditions
#rb Luciano.Ferraro
#tests Juno

[CL 31335624 by yoan stamant in ue5-main branch]
2024-02-09 07:47:27 -05:00
yoan stamant
59d571f154 [SmartObject] added option "Slot Details" to be able to reduce the amount of replicated data for worlds with large amount of SmartObjects.
- This option is required to display annotations (i.e. turning it off will disable annotations and turning on Annotations will turn this one on)
- When turned off, a single shape will represent the SmartObject in the world
#rb mikko.mononen

[CL 31296784 by yoan stamant in ue5-main branch]
2024-02-08 13:42:02 -05:00
yoan stamant
e41fa34cc0 [SmartObject]
- allow smart object creation from definition, transform and owner descriptor struct that will use dynamic ids
- moved FSmartObjectHandleFactory to the SmartObjectTypes and added method to get a dynamic id
- replaced registration type `WithCollection` by `BindToExistingInstance` in USmartObjectComponent since it can also be used for objects not tied to a component lifetime created from CreateSmartObject
- allow subsystem component accessor to force hydrate the actor associated to a smart object.
- fixed automation test to use the right property to set a definition asset now that it has been renamed
#rb Mieszko.Zielinski, mikko.mononen
#tests QAGame, unit tests, Juno

[CL 31291768 by yoan stamant in ue5-main branch]
2024-02-08 10:15:55 -05:00
yoan stamant
f01d228324 [SmartObjects] added option to toggle smart object annotations in GameplayDebugger
#rb Mieszko.Zielinski, mikko.mononen

[CL 31125706 by yoan stamant in ue5-main branch]
2024-02-02 10:39:19 -05:00
yoan stamant
dd424875a9 [SmartObject] use runtime instance to fetch component for a given handle instead of the smartobject container to not rely on the object path.
#rb mikko.mononen

[CL 31006721 by yoan stamant in ue5-main branch]
2024-01-30 10:11:04 -05:00
mikko mononen
2394d7bbd1 Smart Object: Added parameters for Smart Object Definition (take 2)
- Added ability to parameterize the SOD using parameters and property copy
- Each Asset stores and shares a variations based parameter hash

#rb Yoan.StAmant

[CL 30965071 by mikko mononen in ue5-main branch]
2024-01-29 06:26:17 -05:00
edwin maynard
483765d326 [Backout] - CL30836941 (backed out due to potential content errors)
[FYI] mikko.mononen
Original CL Desc
-----------------------------------------------------------------
Smart Object: Added parameters for Smart Object Definition
- Added ability to parameterize the SOD using parameters and property copy
- Each Asset stores and shares a variations based parameter hash

#rb Yoan.StAmant

[CL 30842479 by edwin maynard in ue5-main branch]
2024-01-24 09:54:41 -05:00
mikko mononen
a4f8b85727 Smart Object: Added parameters for Smart Object Definition
- Added ability to parameterize the SOD using parameters and property copy
- Each Asset stores and shares a variations based parameter hash

#rb Yoan.StAmant

[CL 30836942 by mikko mononen in ue5-main branch]
2024-01-24 03:53:02 -05:00
yoan stamant
67c4a8f7ac [SmartObject] added config to clear world preconditions for client builds
#rb mikko.mononen
#rb francis.hurteau

[CL 30410807 by yoan stamant in ue5-main branch]
2023-12-20 08:17:55 -05:00
justin peterson
fe10e8a1ec [Backout] - CL30398852 - CIS Stage Warning
[FYI] Yoan.StAmant
Original CL Desc
-----------------------------------------------------------------
[SmartObject] added config to clear world preconditions for client builds
#rb mikko.mononen, francis.hurteau

#virtualized

[CL 30406910 by justin peterson in ue5-main branch]
2023-12-19 19:47:10 -05:00
yoan stamant
649766d866 [SmartObject] added config to clear world preconditions for client builds
#rb mikko.mononen, francis.hurteau

#virtualized

[CL 30398918 by yoan stamant in ue5-main branch]
2023-12-19 12:59:33 -05:00
mikko mononen
e4b5036e07 SmartObject: Added per object definition data
- added definition data for the whole object
- added GetDefinitionData() & GetDefinitionDataPtr() for the SO definition and slot definition
- Renamed FSmartObjectSlotDefinitionDataProxy -> FSmartObjectDefinitionDataProxy (removed slot)
- Renamed FSmartObjectSlotDefinitionData -> FSmartObjectDefinitionData (removed slot)

[CL 30077219 by mikko mononen in ue5-main branch]
2023-12-04 07:36:52 -05:00