Description

You can no longer set the StateTree asset to use in a Mass Entity Config data asset. The list shows as empty even when making a new StateTree specifically using Mass Behavior schema. Attempts to add the StateTree asset by dragging it from the Content Browser and use the Use Selected Asset button do not work.

It appears that the UPROPERTY meta specifier for RequireAssetDataTags is using a dot to separate the plugin folder and the class as such "Schema=/Script/MassAIBehavior/MassStateTreeSchema".

If you replace the forward slash with a period ("Schema=/Script/MassAIBehavior.MassStateTreeSchema"), the MassStateTreeTrait will accept StateTrees using Mass Behavior schema

Steps to Reproduce
  1. Create a Mass Entity Config data asset
  2. Add a StateTree trait to the config
  3. Create a StateTree that uses the Mass Behavior schema
  4. Attempt to set the StateTree asset in Mass Entity Config

Expected Result: You can select the StateTree asset you just created via the dropdown.

Actual Result: No options appear in the dropdown. You cannot drag the asset to set it, nor set it via the Use Selected Asset button.

Have Comments or More Details?

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

3
Login to Vote

Fixed
ComponentUE - AI - StateTree
Affects Versions5.1
Target Fix5.25.3
Fix Commit22950377
CreatedDec 15, 2022
ResolvedJun 13, 2023
UpdatedJun 23, 2023