A more “traditional” way of doing that is using a regular return value, and an Out param, although frankly, for exactly two values, I feel like using a Tuple is far more readable with the intent.
bool AMyCharacter::DoSomething(float& OutFloat)
{
OutFloat = 1.0f;
return false;
}
You’ll see that pattern all over Unreal, bringing it up so you recognize it. IMO the Tuple is much cleaner, though. Some might argue that creating a new data structure is unnecessary, so don’t, though. But unless it’s a critical performance area, I’d go with the Tuple.