- 在Unreal中,生成DefaultPawn的蓝图在第一次生成DefaultPawn_Blueprint窗口时有“组件” 窗口,如果不小心关掉DefaultPawn_Blueprint窗口,重进入DefaultPawn_Blueprint窗口时可能不再有“组件”窗口,这将导致无法生成C++类。
- void DrawDebugLine
(
const UWorld * InWorld, //世界对象
FVector const & LineStart, //开始
FVector const & LineEnd, //结束
FColor const & Color, //颜色
bool bPersistentLines, //是否保持线条
float LifeTime, //线条保持时间
uint8 DepthPriority,
float Thickness //线条厚度
)//关于bPersistentLines不管为true或false,如果LifeTime不为-1,线条都会保留LifeTime指定时间,如果bPersistentLines为true,且LifeTime<0,那么线条默认保留1秒,LifeTime>0,则按LifeTime计算。