222 Commits

Author SHA1 Message Date
mikko mononen
44c58a9a25 StateTree: Manually merged 31902376, 32435826, 32969383, and 33135570 from Main.
Merging important crash fixes which happened past 5.4 deadlines but severely affect the new features in 5.4.
The fixes were made on top of functionality that is not yet in 5.4. so had to be merged manually.

#jira UE-211189
#rb Mieszko.Zielinski

[CL 33463624 by mikko mononen in 5.4 branch]
2024-05-06 14:19:15 -04:00
mikko mononen
348099ee47 StateTree: Fix active instance data access when during selection.
#rb Mieszko.Zielinski
#lockdown julien.marchand

[CL 32544383 by mikko mononen in 5.4 branch]
2024-03-27 11:10:54 -04:00
mikko mononen
9977e88469 StateTree: Fixed non initialized state params when checking it's enter conditions
[CL 32510432 by mikko mononen in 5.4 branch]
2024-03-26 11:32:39 -04:00
yoan stamant
0adef918de [StateTreeDebugger] handle buffered data differently if it can be reused in multiple traces during the same game session or if it need to be reset when stopping the trace
#jira UE-207387
#rb mikko.mononen

[CL 32488686 by yoan stamant in 5.4 branch]
2024-03-25 18:19:55 -04:00
mikko mononen
593405096e PropertyBinding: Changed the results passed to OnCanAcceptPropertyOrChildrenWithBindingChain to be consistent with the rest of the API.
#rb Mieszko.Zielinski#preflight 65cb57734e11958de197f696

[CL 31422117 by mikko mononen in 5.4 branch]
2024-02-13 08:36:26 -05:00
mikko mononen
2d1a48be9b StateTree: Fixed crash when resolving bindings without value into Weak or Soft Objects.
[CL 31041198 by mikko mononen in 5.4 branch]
2024-01-31 05:34:06 -05:00
mikko mononen
f1104edd5f StateTree: Introduced TStateTreePropertyRefExternalHandle.
- also InstanceDataStorage is stored as a sharedptr now

[CL 31000297 by mikko mononen in 5.4 branch]
2024-01-30 06:46:14 -05:00
yoan stamant
809e763b10 [StateTreeTrace] fixed performance issue when buffering lot of events (> 17K in City Sample) by switching array to map.
#jira UE-204488
#rb mikko.mononen

[CL 30924966 by yoan stamant in 5.4 branch]
2024-01-26 10:45:45 -05:00
mikko mononen
dd16540a54 StateTree: Storing global parameters data in instance storage.
- Implies that parameters are only set once at start
- Allows parameters to be safely mutated if needed, e.g. via property references

[CL 30765232 by mikko mononen in ue5-main branch]
2024-01-22 05:38:03 -05:00
mikko mononen
d6c828e080 StateTree: Introduced TStateTreePropertyRef - type-safe FStateTreePropertyRef wrapper
#rb mikko.mononen tim.smith

[CL 30764929 by mikko mononen in ue5-main branch]
2024-01-22 05:01:31 -05:00
evgenii babinets
690bc2cbc4 Fixed unreachable code warnings/errors.
#rb simon.orr

[CL 30620936 by evgenii babinets in ue5-main branch]
2024-01-15 12:29:05 -05:00
steve robb
6f623bfddb Fixed pass-by-value archive in SerializeDataViewToArchive.
#rb yoan.stamant

[CL 30568948 by steve robb in ue5-main branch]
2024-01-11 10:41:12 -05:00
mikko mononen
e669bb6cd9 StateTree: Added property references (get pointer to a property based on binding)
- Added FStateTreePropertyRef which allows to get pointer to bindable output properties in the StateTree
- This will eventually supercede FStateTreeStructRef

[CL 30563615 by mikko mononen in ue5-main branch]
2024-01-11 04:24:45 -05:00
mikko mononen
e174346757 StateTree: Fixed crash in FStateTreeReference when no parameters are present
[CL 30526901 by mikko mononen in ue5-main branch]
2024-01-10 04:37:25 -05:00
mikko mononen
a0742e30e1 StateTree: Added option for State Tree parameters to be overridden.
- Added property override logic into FPropertyBagInstanceDataDetails
- Added hooks to allow to customize the peoperty override logic by deriving from FPropertyBagInstanceDataDetails
- Added array of overridden property IDs in FStateTreeReference

#rb Mieszko.Zielinski

[CL 30502099 by mikko mononen in ue5-main branch]
2024-01-09 07:30:16 -05:00
yoan stamant
8033d0dd79 [StateTreeDebugger] added trace event for conditions forced to a given result, either from an internal failure to access source data or from the evaluation mode set.
#jira UE-200473
#rb mikko.mononen

[CL 30480397 by yoan stamant in ue5-main branch]
2024-01-08 09:52:36 -05:00
yoan stamant
58e697959b [StateTreeDebugger] added trace event to make it more obvious that global task completion completes the tree
#jira UE-202523
#rb mikko.mononen

[CL 30480155 by yoan stamant in ue5-main branch]
2024-01-08 09:33:45 -05:00
mikko mononen
2e1d54f00c StateTree: Update state details after adding a globa task/eval so that bindings will pick up the new task
#jira UE-188114
#rb Yoan.StAmant

[CL 30389231 by mikko mononen in ue5-main branch]
2023-12-19 02:40:28 -05:00
mikko mononen
1503c2d68c StateTree: Clear struct references on FStateTreePropertyBindings::PerformResetObjects()
#jira UE-189896
#rb Yoan.StAmant

[CL 30388928 by mikko mononen in ue5-main branch]
2023-12-19 02:16:58 -05:00
yoan stamant
4f9060345b Fix CIS issue 408392 (seems to not be an issue with clang 17)
[CL 30299113 by yoan stamant in ue5-main branch]
2023-12-13 14:01:08 -05:00
yoan stamant
0fd9125ce9 Other fix for CIS issue 408344
[CL 30295174 by yoan stamant in ue5-main branch]
2023-12-13 11:37:30 -05:00
yoan stamant
291f8bc9e0 [StateTreeDebugger] support for linked tree assets
- added new dedicated section for completed states
#rb mikko.mononen

[CL 30293000 by yoan stamant in ue5-main branch]
2023-12-13 10:21:13 -05:00
mikko mononen
6f402b9027 StateTree: Added support for external data for nested tree.
#rb Mieszko.Zielinski

[CL 30289195 by mikko mononen in ue5-main branch]
2023-12-13 06:34:27 -05:00
matt peters
64658cf6ae GetAssetRegistryTags deprecation: Make the old GetAssetRegistryTags and related functions deprecated.
Upgrade the overrides and callsites in all of Epic's code.
Every class that can be subclassed by licensees that has its override change needs to keep the old version of the function as deprecated. Otherwise subclasses that call Super::GetAssetRegistryTags will have a compile error instead of a deprecation warning.
Several classes had their own extension method for GetAssetRegistryTags being passed on to user data classes. Updated all of those to take FAssetRegistryTagsContext just like GetAssetRegistryTags does.
#rnx
#rb Francis.Hurteau

[CL 30224166 by matt peters in ue5-main branch]
2023-12-08 21:45:21 -05:00
mikko mononen
400112a177 StateTree: Enabled parameters for all state types
- Allow each state to have parameters (not super useful yet)
- Made property bindings for parameters to retain binding when a param is renamed (keeps track of the property bag ID)
- Fixed access of temporary instance data with EStateTreeDataSourceType::StateParameterData
- Added comments for UStateTreeState properties
- Changed property order of UStateTreeState so that display data comes first, then state settings, and finally parameters
- Fixed FStateTreeStateParametersInstanceDataDetails to allow property editing and value binding at the same time

#rb Mieszko.Zielinski

[CL 30112368 by mikko mononen in ue5-main branch]
2023-12-05 06:59:39 -05:00