Commit Graph

296 Commits

Author SHA1 Message Date
jacob wang
ab360118e2 [State Tree] Added icon for random selection
#jira UE-212343
#rb mikko.mononen

[CL 33006569 by jacob wang in ue5-main branch]
2024-04-16 13:32:28 -04:00
guillaume arruda
4f79176477 Add compile in StateTree PostLoad and compile on PIE begin to state tree so that the trees are never out of sync with the editor state in game
Add validation warning if the state tree is not compiled to prevent uncompiled state tree to be submitted
#rb mikko.mononen

[CL 33001894 by guillaume arruda in ue5-main branch]
2024-04-16 11:14:34 -04:00
mikko mononen
1b8b7b68ed StateTree: Fixed duplicate localizations strings.
#jira UE-212181

[CL 32997038 by mikko mononen in ue5-main branch]
2024-04-16 07:17:16 -04:00
mikko mononen
9bcda384a4 StateTree: Fix parameter handling entering to a subtree directly.
- When transitioning to a subtree directly, self host the parameters
- Made transitioning to a subtree directly a warning, may make it an error in future versions

#jira UE-211189
#rb Yoan.StAmant

[CL 32969399 by mikko mononen in ue5-main branch]
2024-04-15 08:23:17 -04:00
mikko mononen
36782b28e7 StateTree: Fixed StateTree state UI to refresh properly after undo
#jira UE-185357
#rb Mieszko.Zielinski

[CL 32969250 by mikko mononen in ue5-main branch]
2024-04-15 08:05:39 -04:00
mikko mononen
af34e7cba8 StateTree: Fixed UI when undoing
- When redoing add node + set node type the property customization for the node children is reused, but we cache the node ID from the initially empty node.
- Changed FBindableNodeInstanceDetails to always get the up to date ID

#jira UE-204376
#rb Mieszko.Zielinski

[CL 32969012 by mikko mononen in ue5-main branch]
2024-04-15 07:50:58 -04:00
mikko mononen
da69f444d5 StateTree: Added warning about linked state's child states (which cannot be selected)
#jira UE-208928
#rb Mieszko.Zielinski

[CL 32925706 by mikko mononen in ue5-main branch]
2024-04-12 07:21:04 -04:00
mikko mononen
2b93815d0a StateTree: Improved event handling
- Added support for shared event buffer, so that multiple instance data can use the same
- Added API to consume events
- Removed double buffering from events
- Treat TriggerTransitions() as event handler (events flushed after each call to the method)
- Event handlers (including tasks) are executed in priority order
- Transitions and event capturing states can consume events on successful selection
- Added API to tick a StateTree in two passes (update tasks and trigger transitions)
- Change parallel tree tasks to do the task update in Tick(), and event handling in TriggerTransitions()
- Small improvements to the ST debugger to display events
- NOTE: this is breaking change for implementations that has relied events emitted during tick to be available on next EnterState()

#okfirgithub public
#rb Yoan.StAmant

[CL 32924765 by mikko mononen in ue5-main branch]
2024-04-12 06:04:01 -04:00
mikko mononen
879e31f4c0 StateTree: Make an error to fail ST compilation.
#jira UE-207493

[CL 32883341 by mikko mononen in ue5-main branch]
2024-04-11 07:09:40 -04:00
mikko mononen
ea3a4ae635 StateTree: Changed Task icon.
[CL 32882913 by mikko mononen in ue5-main branch]
2024-04-11 06:56:08 -04:00
mikko mononen
25d1ba6c73 StateTree: Improved transition visualization and fixed some logic to better match the execution.
#jira UE-210496
#rb Yoan.StAmant

[CL 32875559 by mikko mononen in ue5-main branch]
2024-04-11 04:14:59 -04:00
mikko mononen
2d865a3f7e StateTree: Fix duplicate LOCTEXT
#jira UE-211740

[CL 32873134 by mikko mononen in ue5-main branch]
2024-04-11 02:20:18 -04:00
mikko mononen
4651e00949 StateTreeDebugger: Fix "stuck timeline"
- Make sure SStateTreeDebuggerView::MaxTrackRecordingDuration is always kept in sync so that timeline clamping works
- Tick() is called only on visible debugger windows, in case of multiple debuggers some timeline might not get corrent legnth for time scrubbing clamping

#rb Mieszko.Zielinski, Yoan.StAmant

[CL 32850983 by mikko mononen in ue5-main branch]
2024-04-10 03:55:19 -04:00
mikko mononen
b888b0f394 StateTree: Added automatic description to tasks and conditions.
#rb Mieszko.Zielinski

[CL 32754463 by mikko mononen in ue5-main branch]
2024-04-05 03:37:02 -04:00
mikko mononen
5e4d3a8a6c [Backout] - CL32744797
[FYI] bob.tellez
Original CL Desc
-----------------------------------------------------------------
[Backout] - CL32723276
[FYI] mikko.mononen
Original CL Desc
-----------------------------------------------------------------
StateTree: Made parent state required events and enter conditions to be evaluated when transition leads directly to it's child. (contributed)

[CL 32754072 by mikko mononen in ue5-main branch]
2024-04-05 02:16:32 -04:00
bob tellez
adaa2e290a [Backout] - CL32723276
[FYI] mikko.mononen
Original CL Desc
-----------------------------------------------------------------
StateTree: Made parent state required events and enter conditions to be evaluated when transition leads directly to it's child. (contributed)

[CL 32744822 by bob tellez in ue5-main branch]
2024-04-04 17:51:12 -04:00
marc audy
4cffeabc01 Fix warning V595: The 'SourceProperty' pointer was utilized before it was verified against nullptr.
[FYI] mikko.mononen
#rnx

[CL 32729713 by marc audy in ue5-main branch]
2024-04-04 11:27:07 -04:00
mikko mononen
b67864e0ad StateTree: Made parent state required events and enter conditions to be evaluated when transition leads directly to it's child. (contributed)
[CL 32723281 by mikko mononen in ue5-main branch]
2024-04-04 07:01:38 -04:00
jacob wang
d268906a4b [State Tree Editor] Buttons for creating new blueprint tasks and conditions from existing blueprint classes
#jira UE-187150
#rb mikko.mononen

[CL 32669643 by jacob wang in ue5-main branch]
2024-04-02 12:06:08 -04:00
maxime mercier
b121e30c79 CIS fix in 29.40 rollback original fix as the one I have made earlier today is conflicting with this one but it was in 29.20 branches which was for 5.4 release.
[CL 32653750 by maxime mercier in ue5-main branch]
2024-04-01 18:02:13 -04:00
maxime mercier
c10a982b7d #jira UE-211098
[REVIEW]
#rb aurel.cordonnier

[CL 32652720 by maxime mercier in ue5-main branch]
2024-04-01 17:23:03 -04:00
henrik karlsson
2755be1a9f Fixed iwyu compile errors when compiling FortniteEditor
[CL 32626759 by henrik karlsson in ue5-main branch]
2024-03-29 18:57:30 -04:00
mikko mononen
83d4312a2c StateTree: Improve state picker.
- imropoved the state picker to display the states in hieracrchy

#rb Mieszko.Zielinski

[CL 32576972 by mikko mononen in ue5-main branch]
2024-03-28 10:25:37 -04:00
mikko mononen
91012bfa0b StateTree: Added linked state overrides.
- Added ability to describe override table for linked state tree references
- This allows to override parts of the tree e.g. based on character type
- Fixed visibility of the State parameter button when in fixed mode

#rb guillaume.arruda

[CL 32572125 by mikko mononen in ue5-main branch]
2024-03-28 05:18:19 -04:00
mikko mononen
3874cd3057 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 32545579 by mikko mononen in ue5-main branch]
2024-03-27 11:52:31 -04:00