242 Commits

Author SHA1 Message Date
mikko mononen
f11c06c22d StateTree: Manually merge ST debugger fixes from CLs 32255537, 3285098, and, 33030882.
#jira UE-213413
#rb Mieszko.Zielinski

[CL 33515514 by mikko mononen in 5.4 branch]
2024-05-08 14:48:13 -04:00
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
maxime mercier
f909134f6e #jira UE-211098
[REVIEW]
#rb aurel.cordonnier

[CL 32652259 by maxime mercier in 5.4 branch]
2024-04-01 17:09:31 -04:00
mikko mononen
199b745adc StateTree: Make sure PostLoad() is called on objects that are required for automatic compiling on version change.
#jira UE-210212
#rb Yoan.StAmant
#lockdown julien.marchand

[CL 32544410 by mikko mononen in 5.4 branch]
2024-03-27 11:12:28 -04:00
guillaume arruda
e9127b98af Create IStateTreeSchemaProvider that allows a derived class to override the schema used by a parent property.
Create StateTreeAIComponent & StateTreeAIComponentSchema derived from StateTreeComponent but guaranteed to have a AIController
#rb mikko.mononen

[CL 32496296 by guillaume arruda in 5.4 branch]
2024-03-26 00:33:28 -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
169d800ba8 StateTree: Small UI fixes
- changed the font to default font to support all supported languages (e.g. chinese was displaying wrong)
- removed bad pattern of using new FSlateRoundedBoxBrush() in editor node tails (leaks memory)
- fixed potentially dangerous use of [this] capture in FStateTreeTransitionDetails

#rb Yoan.StAmant

[CL 30966411 by mikko mononen in 5.4 branch]
2024-01-29 07:42:12 -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
juan portillo
756afecf52 State Tree Details:
- Disable Category Row Buttons if Property Editing is disabled

#rb mikko.mononen
#jira UE-204437

[CL 30764358 by juan portillo in ue5-main branch]
2024-01-22 03:26:23 -05:00
steve robb
6d5b974842 Fixed up a lot of bool-taking container resize functions to take EAllowShrinking instead.
[CL 30735396 by steve robb in ue5-main branch]
2024-01-19 19:41:56 -05:00
mikko mononen
b80c371c77 StateTree: Added parameter overrides for StateTree states
#rb Yoan.StAmant

[CL 30589270 by mikko mononen in ue5-main branch]
2024-01-12 05:08:35 -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
f6cedab062 PropertyAccess: Added a version of the OnCanAcceptProperty which gets the property chain passed in.
#rb thomas.sarkanen

[CL 30526373 by mikko mononen in ue5-main branch]
2024-01-10 03:38:34 -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
robomerge
1ac3b5078a StateTree: Changed guid fixup to be more deterministic.
#jira UE-202608
#rb Matt.Peters, Mieszko.Zielinski

[CL 30426680 by robomerge in ue5-main branch]
2023-12-21 07:27:54 -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
yoan stamant
ee861bd116 [StatetreeDebugger] fixed empty lines in some node details
#rb mikko.mononen

[CL 30383791 by yoan stamant in ue5-main branch]
2023-12-18 17:28:38 -05:00
mikko mononen
00ae9d4fac StateTree: Change StateTree editor transition display to reflect the execution logic
- The execution logic will transition to Root if no state is found, change editor to reflet that
- Change viewmodel from ref to ptr to make it optional (allows to reuse the row for non-editing purposes)

[CL 30315165 by mikko mononen in ue5-main branch]
2023-12-14 02:55:56 -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
b9896e5779 StateTree: FIx type on error message.
[CL 30289516 by mikko mononen in ue5-main branch]
2023-12-13 07:06:24 -05:00
mikko mononen
60a5dffa2d StateTree/SmartObjects: fix incorrect use of EFieldIterationFlags::None which prevents inherited struct's properties to be visited.
#rb Mieszko.Zielinski

[CL 30208750 by mikko mononen in ue5-main branch]
2023-12-08 07:31:01 -05:00
christopher waters
86af3ce99d Fixing various header only compile errors.
[CL 30138626 by christopher waters in ue5-main branch]
2023-12-05 17:55:30 -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
mikko mononen
fc52c04579 StateTree: Fixed crash when removing a task from state
[CL 30073585 by mikko mononen in ue5-main branch]
2023-12-04 04:05:29 -05:00