UE5 使用占位符将1转成01

//this .cpp

FString UsplineFunctionLibrary::PlaceholderOutput(int32 Num)
{
	FString abc = FString::Printf(TEXT("%02d"),Num);

	return  abc;

	//FString ss = FString::Printf(TEXT("%02d"),SS);
	//FString mm = FString::Printf(TEXT("%02d"),MM);
	//FString hh = FString::Printf(TEXT("%02d"),HH);
	//FString formattedTime = FString::Format(TEXT("{0}:{1}:{2}"), { hh, mm, ss });

	//return formattedTime;
}

你可能感兴趣的:(ue5,java,服务器)