Description

When using a state tree that has a StateTreePropertyRef as a parameter in parallel any references will fail to resolve using the GetPropertyRef node.

Steps to Reproduce

Process: Create a state tree with a child state that runs a second state tree in parallel. Pass in a state tree property ref as a parameter and attempt to use it in a task with GetPropertyRef.

Steps:
1. Create a new blueprint "STT_DebugTextRefs" with the parent StateTreeTaskBlueprintBase
1a. Add variable "RefString" of type StateTreePropertyRef with a type of FString. Make its category "Input" and make it public.
1b. On EventTick node attach node GetPropertyReference with your variable as argument. connect output to a drawdebugtext node from the Succeded exec pin. Connect another drawdebugtext to Failed pin with default text e.g "FAILED"
2. Create two state trees "ST_Master" and "ST_Parallel" with the StateTreeAIComponent schema.
3. In ST_Parallel Tree:
3a. Add StateTreePropertyRef parameter "InputRef" with type string.
3b. Create new state under root. Add task STT_DebugTextRefs and bind InputRef to the "RefString" parameter.
4. In ST_Master state tree:
4a. Add FString parameter "StringForRef" with some default value.
4b. Create child state of root. To it add task RunParallelTree and set the State Tree parameter to "ST_Parallel". In the dropdown for that parameter check the RefString argument and bind "StringForRef".
5. Create a new Pawn blueprint "TestPawn" and AIController Blueprint "AIController".
5a. In "AIController" ad a StateTreeAI component and set its StateTree property to "ST_Master"
5b. In "TestPawn" set the AIControllerClass property to "AIController"
5c. add "TestPawn" to the world.
6. Run the project in PIE and observe that the debug text will display the value for the failed exec pin.
7. Repeat Test with other StateTreePropertyRef Types as necessary.

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-356486 in the post.

0
Login to Vote

Unresolved
ComponentUE - AI - StateTree
Affects Versions5.65.7.1
Target Fix5.8
CreatedDec 2, 2025
UpdatedDec 3, 2025
View Jira Issue