记录可生成的粒子系统

时间:2019-10-24 20:40:13

标签: c++ unreal-engine4 spawn particle-system

我想在生成粒子系统后对其进行记录

a busy cat

当我尝试使用序列记录器进行记录时,尽管出现下一个错误:“缺少与该音轨绑定的对象”

a busy cat

// .h
TArray<UParticleSystemComponent*> LaserParticles; 
// .cpp
LaserParticles.Add(UGameplayStatics::SpawnEmitterAtLocation(GetWorld(),PSC->Template, FTransform::Identity, false));
LaserParticles[i]->bAutoManageAttachment = true;
....
Objects[i]->LaserParticles[count]->SetBeamSourcePoint(0, initial, 0);
Objects[i]->LaserParticles[count]->SetBeamTargetPoint(0, finish,0);

0 个答案:

没有答案
相关问题