标签:where api 5.0 span end origin bug ++ min
BluePrint:
C++:
#include "kismet/KismetMathLibrary.h" //这个类有一个方法可以获取一定范围内随机一点,用法: (GetWhereToSpawn() 返回boxComponent)
FVector ASpawnVolume::GetRandomPointToVolume() { FVector MeshOrigin = GetWhereToSpawn()->Bounds.Origin; FVector MeshExt = GetWhereToSpawn()->Bounds.BoxExtent; return UKismetMathLibrary::RandomPointInBoundingBox(MeshOrigin, MeshExt); }
#include "Engine.h"
//打印内容到屏幕
GEngine->AddOnScreenDebugMessage(-1, 15.0f, FColor::Yellow, TEXT("Some debug message!"));
标签:where api 5.0 span end origin bug ++ min
原文地址:http://www.cnblogs.com/yang-xiong/p/6392350.html