25 Commits

Author SHA1 Message Date
guillaume arruda
bdc849e2ee Fix include case
#rnx

[CL 32496311 by guillaume arruda in 5.4 branch]
2024-03-26 00:33:45 -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
guillaume arruda
7c67c89076 Create StateTreeMoveToTask wrapping a UAITask_MoveTo allowing state tree to move AI using the same framework as BehaviorTree
Create the FStateTreeAITaskBase & FStateTreeAIActionTaskBase state tree task namespace for AI focused ST task
#rb mikko.mononen

[CL 32496289 by guillaume arruda in 5.4 branch]
2024-03-26 00:33:23 -04:00
guillaume arruda
63d11148dc Create BTTask_RunStateTree and BTTask_RunDynamicStateTree that allows the execution of state tree in a behavior tree
#rb mikko.mononen

[CL 32493257 by guillaume arruda in 5.4 branch]
2024-03-25 19:58:58 -04: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
yoan stamant
36d1541ccf [StateTree] moved some types to the execution types header
#rb mikko.mononen

[CL 26255500 by yoan stamant in ue5-main branch]
2023-06-27 09:07:17 -04:00
BinaerBoy
3b4489bbaa PR #10100: Including GAMEPLAYSTATETREEMODULE_API for UStateTreeComponentSchema (Contributed by BinaerBoy)
#preflight 641d807da86ae7cbcc3eb37e

[CL 24777927 by BinaerBoy in ue5-main branch]
2023-03-24 07:57:37 -04:00
yoan stamant
506e82ba24 [StateTree] stop logic on EndPlay for auto-activated components (start logic) that are not associated to an AI owner.
#rnx
#rb mikko.mononen, mieszko.zielinksi
#preflight 641454f05d3e25354f15d9ae

[CL 24687982 by yoan stamant in ue5-main branch]
2023-03-17 09:41:07 -04:00
mikko mononen
f5c2fcca25 StateTree: Clarify usage of SetStartLogicAutomatically
#rb trivial
#preflight 640f1bbd482188d7103910d6

[CL 24612267 by mikko mononen in ue5-main branch]
2023-03-13 10:18:23 -04:00
henrik karlsson
9a1d5b1ad4 [Engine/Plugins]
* Ran IWYU on ~170 plugins to remove includes not needed. Public api still keep old includes inside #if UE_ENABLE_INCLUDE_ORDER_DEPRECATED_IN_5_2

#preflight 63d09351574ab9cae4670216
#rb none

[CL 23844750 by henrik karlsson in ue5-main branch]
2023-01-25 02:42:36 -05:00
foobit
7c8f7ac6fe PR #9830: [StateTree] StateTreeComponent.GetStateTreeRunStatus method and status delegate (Contributed by foobit)
#rb Mikko.Mononen
#preflight 639c374143330e63e5bb8fd0

[CL 23536754 by foobit in ue5-main branch]
2022-12-16 05:45:13 -05:00
Duroxxigar
9c814d5e8d PR #9910: Create Setter for auto start property for state tree (Contributed by Duroxxigar)
#rb Mikko.Mononen
#preflight 639af82535203bc7aa4c030a

[CL 23531355 by Duroxxigar in ue5-main branch]
2022-12-15 15:55:44 -05:00
mikko mononen
186e03b32e StateTree: Improved event handling
- Moved event queue to it's own struct
- Changed the SendEvent() API to accept struct view to prevent instanced struct copy in common cases
- Fixed event handling in case EnterState() fails.
- Added option for Tasks to disavble ticking, or to be ticked only when there are events
- Added option for Tasks handle when properties are copied
- Changed DebugText to use external Actor reference
- Changed DelayTask to use the new GetInstanceData which does not need type
- Added TStateTreeInstanceDataStructRef which can be used to access struct instance data in delegates

#rb Maxime.Mercier Luciano.Ferraro
#preflight 6360dd302b5338aceb2d0343

[CL 22888708 by mikko mononen in ue5-main branch]
2022-11-01 15:11:19 -04:00
mikko mononen
b24ef66a2f StateTree: Removed internal instance from StateTree execution context.
#rb Mieszko.Zielinski
#preflight 632d72ca1003050806b168c2

[CL 22163646 by mikko mononen in ue5-main branch]
2022-09-23 20:02:42 -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
cb367257d7 StateTree:
- Fixed potential crash in StateTree editor row
- Fixed StateTreeComponentSchema actor class not updating property on load

#rb Mieszko.Zielinski
#preflight 6315cd43ec45fbf3d7ae82d0

[CL 21791567 by mikko mononen in ue5-main branch]
2022-09-05 09:08:59 -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
mikko mononen
1810e46eb4 StateTreeSchema: fix missing Actor include
[CL 21685069 by mikko mononen in ue5-main branch]
2022-08-29 14:49:38 -04:00
mikko mononen
5772ff0254 StateTree: Fix missing include and editor guard from StateTreeComponentSchema
#rb trivial

[CL 21685039 by mikko mononen in ue5-main branch]
2022-08-29 14:48:32 -04:00
mikko mononen
0d1ace8323 StateTree: StateTreeComponent improvements
- Added option to start the StateTree automatically on BeginPlay
- StateTreeComponentSchema: allow to specify which actor class to expect the StateTree to run on (allows to bind to Actor specific data directly)
- Fixed FStateTreeReference parameter update on BP instance (the struct gets copied, which cause issues with the delegate handle)

#rb Mieszko.Zielinski
#preflight 630c70bb0345de4ccf7c8b51

[CL 21685020 by mikko mononen in ue5-main branch]
2022-08-29 14:47:43 -04:00
Zousar Shaker
3f4252aa56 ObjectPtr upgrade for engine plugins used from UnrealEditor -allmodules. Automated upgrade process.
#rb none
#preflight 62fe7f270601ad0504910c30

[CL 21447894 by Zousar Shaker in ue5-main branch]
2022-08-18 15:08:49 -04:00
Yoan StAmant
44dc96a815 Fixed StateTree schema meta data filtering by specifying full name
#rb trivial
#preflight skip
#fyi mikko.mononen

[CL 21444184 by Yoan StAmant in ue5-main branch]
2022-08-18 12:36:08 -04:00
mikko mononen
68a3b6aa67 StateTree: Made StateTreeComponent to use StateTreeRef, and fixed StateTreeRef on Actor Components
#preflight 62da4a10185da2495f802bae

#ROBOMERGE-AUTHOR: mikko.mononen
#ROBOMERGE-SOURCE: CL 21217415 via CL 21217580 via CL 21217683
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v972-20964824)

[CL 21218420 by mikko mononen in ue5-main branch]
2022-07-22 05:33:11 -04:00
mikko mononen
f9887f77bc StateTree: Added schema picker to new tree creation workflow
- Added BP-like class picker for schema when StateTree asset is created
- Added "CommonSchema" meta tag for schemas to allow them to be added to the common list
- Allow the asset on StateTree actor component to EditAnywhere
- Fixed compilation indication for empty StateTrees (was showing red)

#robomerge EngineMerge
#jira UE-151649
#rb Yoan.StAmant
#preflight 62beaeeb8d5e6787590a0921

[CL 20911820 by mikko mononen in ue5-main branch]
2022-07-01 04:36:16 -04:00
Yoan StAmant
f4f130cbae GameplatStateTree Plugin
- moved StateTreeBrainComponent (from StateTreeModule) and renamed StateTreeComponent
- added FStateTreeTaskCommonBase (similar to FStateTreeTaskCommonCondition)
#rnx
#rb mikko.mononen
#preflight 626fd50d645c64f3a236325a

[CL 20007596 by Yoan StAmant in ue5-main branch]
2022-05-02 09:15:14 -04:00