Featured image of post 生成和销毁Actor

生成和销毁Actor

在本文中,你将学会如何生成Actor,并创建一个Actor生成器,允许你点击按钮来生成Actor。

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
AActor* UWorld::SpawnActor
(
    UClass*			Class,
    FName			InName,
    FVector const*	Location,
    FRotator const*	Rotation,
    AActor*			Template,
    bool			bNoCollisionFail,
    bool			bRemoteOwned,
    AActor*			Owner,
    APawn*			Instigator,
    bool			bNoFail,
    ULevel*			OverrideLevel,
    bool			bDeferConstruction
)