/* Struct of optional parameters passed to SpawnActor function(s). */
struct ENGINE_API FActorSpawnParameters
{
/* The Actor that spawned this Actor. (Can be left as NULL). */
AActor* Owner;
/* The APawn that is responsible for damage done by the spawned Actor. (Can be left as NULL). */
APawn* Instigator;
};
SpawnActor传参,Owner和Instigator含义一开始不明白,后来查了下,这么理解可能更容易。
举个例子:玩家在坦克中开炮,命中了敌人。这里炮弹的Owner是坦克,Instigator是玩家。