When a StateTree Blueprint task variable’s Category is picked from the dropdown in a Japanese editor, StateTree treats the variable differently per editor language. The StateTree compiles in Japanese but fails on our English build machines with:
Input property ‘B’ on Task ‘…’ is expected to have a binding.
The dropdown stores the localizable UObjectCategory text, and the Blueprint compiler writes the Category metadata as Variable.Category.ToString(), so it reads “入力” in Japanese. UE::StateTree::GetUsageFromMetaData only recognizes “Input”/“Output”/“Context”, so 入力 becomes an optional Parameter.
Repro (5.8.1, unchanged on ue5-main):
1. Japanese editor. In a StateTree Task Blueprint, type “Input” as variable A’s category.
2. For variable B, pick 入力 from the category dropdown.
3. Leave B unbound in a StateTree: it compiles. Load it with -culture=en: binding error.
This looks like the same root cause as UE-358593. Writing the culture-invariant source string to Category metadata in the BP compiler could fix both. Our local patch in `GetUsageFromMetaData`:
FString Category = Property->GetMetaData(CategoryName);
if (const UBlueprint* Blueprint = UBlueprint::GetBlueprintFromClass(Property->GetOwnerClass()))
{
const FName VarName = Property->GetFName();
if (const FBPVariableDescription* Variable = Blueprint->NewVariables.FindByPredicate([&VarName](const FBPVariableDescription& Desc) { return Desc.VarName == VarName; }))
{
Category = *FTextInspector::GetSourceString(Variable->Category);
}
}
[Attachment Removed]