Commit Graph

56 Commits

Author SHA1 Message Date
mikko mononen
e2fd3455a9 StateTree: Allow tasks to request transitions
- Added ability for tasks to request transitions
- Added buffered transition requests
- Added callback method to FStateTreeTaskBase which is called during transition triggering
- Allow FStateTreeStateLink to be added to tasks and conditions (resolved automatically during compile)

#jira UE-174250
#preflight 63ca7ee8977c62635603afcb

[CL 23815873 by mikko mononen in ue5-main branch]
2023-01-23 12:48:04 -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
henrik karlsson
ca622abf70 * Fixed non unity compile errors
* Added UE_INLINE_GENERATED_CPP_BY_NAME to a few files missing it
* Added HEADER_UNIT_SKIP comment to deprecated files

#preflight skipped
#rb none

[CL 23659670 by henrik karlsson in ue5-main branch]
2023-01-12 02:10:19 -05:00
mikko mononen
652d03ca60 StateTree: Fix deno details for non-unity build
#rb trivial
#preflight 63be84adc543a64b7d2543a2

[CL 23648533 by mikko mononen in ue5-main branch]
2023-01-11 12:43:40 -05:00
mikko mononen
d30ad5127b State Tree: new node picker
- added class picker style new node picker with search box and categories

#rb Mieszko.Zielinski
#preflight 63be76206e6e8d4662c637fb

[CL 23643504 by mikko mononen in ue5-main branch]
2023-01-11 05:08:00 -05:00
mikko mononen
ab3816dd30 StateTree: Added global tasks
- Added global tasks which are run at tree level similar to evals (will replace evals)
	- allows initial state selection to rely in calculated data (e.g. world conditions)
	- allows better reuse of existing logic
- Call evaluator stop in reverse order
- Use some uses of mutable instanced structs
- Copy bindings along with ST nodes
- Remove bindings when removing a ST node, so that undo can restore them

#rb Yoan.StAmant
#preflight 63bd2c7968068a8bd6395d2c

[CL 23632408 by mikko mononen in ue5-main branch]
2023-01-10 15:44:28 -05:00
mikko mononen
007fead525 StateTree: Fixed enum property bindings
- consolidate naming of invalid/empty to none in any enum details
- fix UStateTreeEditorData::GetStructByID (was generally returning first context data)
- when binding to an enum property, prune potential source properties based on enum type

#jira UE-173050
#preflight 639c663e012902cb8db9546d

[CL 23537268 by mikko mononen in ue5-main branch]
2022-12-16 08:44:52 -05:00
mikko mononen
12fe8606a6 StructUtils: Fix crash in propertybag details
- SPinTypeSelector can outlive the detail rows of proeprty bag customization
- Make sure we can detect that case and fail gracefully

#preflight 639af57e2540a78d27d9b69d

[CL 23531353 by mikko mononen in ue5-main branch]
2022-12-15 15:55:38 -05:00
mikko mononen
44158dfc31 StateTree: small editor fixes
- updated type tooltip
- use stable sort to keep item order in same category intact

#rb Mieszko.Zielinski
#preflight 6390694c7e0feab0b7acccd5

[CL 23426899 by mikko mononen in ue5-main branch]
2022-12-07 06:57:23 -05:00
mikko mononen
ea716a7a05 StateTree: Fix localization key duplicate.
#rb trivial
#preflight 638dbcc49242c01326fd49eb

[CL 23388640 by mikko mononen in ue5-main branch]
2022-12-05 06:38:36 -05:00
Stephen Holmes
2f18773caa Addressing the remaining AI numeric conversion issues.
#jira UE-166285
#review
#preflight 638a031b35192facc1c0fd77

[CL 23372606 by Stephen Holmes in ue5-main branch]
2022-12-02 10:07:29 -05:00
mikko mononen
df359ce99e StateTree: Transition improvements
- Removed gated delay (transition will be delayed until it has been "pressed" for N seconds)
- Delay now triggers after the delay duration has passed (single trigger, not "pressed", works with events too)
- Added random variation for the delay
- Tick/Event transitions has precedence over completion transitions (that is, they are handled before completion transitions)
- Removed delay and blocking from completion transitions
- Small improvements for transitions UI

#rb Mieszko.Zielinski
#preflight 6389e0b435192facc1b95cdb

[CL 23371519 by mikko mononen in ue5-main branch]
2022-12-02 07:57:31 -05:00
steve robb
9e1c7e2b0f Fixed missing linkage for constants bound to references.
#rb trivial
#preflight 6364434fd308b70e661d6c5c

[CL 22977762 by steve robb in ue5-main branch]
2022-11-04 00:01:20 -04:00
mikko mononen
917f91f1dc StateTree: Fix copy pasting UObject based nodes
- not all properties were copied due to use of PPF_PropertyWindow instead of PPF_Copy
- instance object was not duplicated correctly

#rb Mieszko.Zielinski
#preflight 636372d954471d10be4d69f3

[CL 22959051 by mikko mononen in ue5-main branch]
2022-11-03 14:21:42 -04:00
henrik karlsson
fa90b399a4 Added includes for future change. This changelist only contains added #include and a couple of empty placeholder files
Tested compiling fortnite, unrealeditor, lyra, qagame with non-unity/pch

#preflight 63635997876630122adeab9f
#rb none

[CL 22958990 by henrik karlsson in ue5-main branch]
2022-11-03 14:18:47 -04:00
henrik karlsson
b5b86c796c This change is a strategical submit for a coming change that removes lots of includes in headers that are included by many files. This change contains adding of includes in files that previously got those includes transitively from other inclkudes
#preflight 6355d4940313c24974b2107b
#rb none

[CL 22783162 by henrik karlsson in ue5-main branch]
2022-10-26 12:57:32 -04:00
bryan sefcik
117472780d Fixed include paths.
#jira
#preflight 634ee62fe746026e48eb077e

[CL 22621687 by bryan sefcik in ue5-main branch]
2022-10-19 06:39:08 -04:00
mikko mononen
bb0b758364 StateTree: Fix AnyEnum display and binding
#jira UE-166050
#rb Mieszko.Zielinski
#preflight 633d2f411451b83c2a7558c5

[CL 22362064 by mikko mononen in ue5-main branch]
2022-10-05 15:59:33 -04:00
mikko mononen
b6b9d5c784 StateTree: Fix unity build on StateTreeEditorNodeDetails
#rb trivial

[CL 22272732 by mikko mononen in ue5-main branch]
2022-09-30 12:22:10 -04:00
mikko mononen
39c7181f12 StateTree: Fix duplicate and copy/paste of node
- Generate new IDs for transition conditions nodes on duplicate
- Generate new IDs for nodes on paste
- Prevent pasting between incompatible node containers

#jira UE-149896
#preflight 6336cbd1d165c45137fe1973

[CL 22272713 by mikko mononen in ue5-main branch]
2022-09-30 12:21:34 -04:00
marc audy
a194435a78 Fix const cast on a TObjectPtr
[CODEREVIEW] Mikko.Mononen

[CL 22086998 by marc audy in ue5-main branch]
2022-09-19 21:56:39 -04:00
mikko mononen
0d47d49765 StateTree: Context Objects
- Cleaned up Blueprint nodes from deprecated functions
- Added call guards for BP implemented events on BP nodes
- Renamed Named External Data to Context (Object/Data)
- Added automatic binding for Context objects
- Added UI visualization for Context properties and cleaned up the Input/Ouput visualization
- Added compiler errors for missing Input and Context properties

#jira UE-156544 UE-147509
#rb Stephen.Holmes

[CL 22084585 by mikko mononen in ue5-main branch]
2022-09-19 19:47:11 -04:00
mikko mononen
58cde503d4 PropertyBag: UI tweaks
- simplified the usage of the FPropertyBagInstanceDataDetails
- Changed the UI to match closer the array property style

#preflight 631af12bd135b61bc54b0960

[CL 21918229 by mikko mononen in ue5-main branch]
2022-09-09 06:56:01 -04:00
mikko mononen
61fee4aad0 StateTree: Fixed the schema filtering
- change schema types to include the module path
- removed unused GetStorageSuperStruct()

#rb Stephen.Holmes

[CL 21862723 by mikko mononen in ue5-main branch]
2022-09-07 17:12:28 -04:00
mikko mononen
bbd34dd782 StateTree Events
- Added StateTree events, which allows e.g. transitions based on internal or external events
- Clarified transition nomenclature
- Update UI to support transition events
- BP support for events
- Renamed UStateTreeItemBase to UStateTreeNodeBase for consistency with FStateTreeNodeBase

#jira UE-156543
#rb Mieszko.Zielinski
#preflight 631077ef660db81edbd068ca

[CL 21738918 by mikko mononen in ue5-main branch]
2022-09-01 09:06:53 -04:00