Add Set Parameter node to Anim Graph

#2162
This commit is contained in:
Wojtek Figat
2026-02-03 15:42:26 +01:00
parent f725f4c0b9
commit c828c90161
2 changed files with 36 additions and 0 deletions

View File

@@ -958,6 +958,21 @@ void AnimGraphExecutor::ProcessGroupParameters(Box* box, Node* node, Value& valu
}
break;
}
// Set Parameter
case 5:
{
// Set parameter value
int32 paramIndex;
const auto param = _graph.GetParameter((Guid)node->Values[0], paramIndex);
if (param)
{
context.Data->Parameters[paramIndex].Value = tryGetValue(node->GetBox(1), 1, Value::Null);
}
// Pass over the pose
value = tryGetValue(node->GetBox(2), Value::Null);
break;
}
default:
break;
}