[UE4]数据转换

FString转int32

Color = FCString::Atoi(*ColorStr)

ColorStr类型为FString,Color类型为int32

  • 使用FVector::ToString()将 FVector 转为 FString

int32转FString

FString::FromInt(Color)

GEngine->AddOnScreenDebugMessage(0, 3.f, FColor::Red, *NewLocation.ToString());

如何查看一个对象在对象列表里的值

int32 Index = Object->InternalIndex;

GUObjectArray.ObjObjects.Objects[Index]

获取level began play到现在的时间

MyWorld->TimeSeconds;

ue4中有提供角度标准化的方法吗(即把角度标准化到(-180,180]范围内)

static float NormalizeAxis( float Angle );

猜你喜欢

转载自blog.csdn.net/qq173681019/article/details/82728843