CARLA
Public Member Functions | List of all members
ACarlaActorFactory Class Reference

Base class for Carla actor factories. More...

#include <CarlaActorFactory.h>

+ Inheritance diagram for ACarlaActorFactory:
+ Collaboration diagram for ACarlaActorFactory:

Public Member Functions

 ACarlaActorFactory (const FObjectInitializer &ObjectInitializer)
 
virtual TArray< FActorDefinitionGetDefinitions ()
 Retrieve the list of actor definitions that this class is able to spawn. More...
 
virtual FActorSpawnResult SpawnActor (const FTransform &SpawnAtTransform, const FActorDescription &ActorDescription)
 Spawn an actor based on ActorDescription and Transform. More...
 

Detailed Description

Base class for Carla actor factories.

Definition at line 20 of file CarlaActorFactory.h.

Constructor & Destructor Documentation

◆ ACarlaActorFactory()

ACarlaActorFactory::ACarlaActorFactory ( const FObjectInitializer &  ObjectInitializer)
inline

Definition at line 26 of file CarlaActorFactory.h.

Member Function Documentation

◆ GetDefinitions()

virtual TArray<FActorDefinition> ACarlaActorFactory::GetDefinitions ( )
inlinevirtual

Retrieve the list of actor definitions that this class is able to spawn.

Reimplemented in ACarlaActorFactoryBlueprint, ASensorFactory, ATriggerFactory, AStaticMeshFactory, and AAIControllerFactory.

Definition at line 33 of file CarlaActorFactory.h.

Referenced by UActorDispatcher::Bind().

+ Here is the caller graph for this function:

◆ SpawnActor()

virtual FActorSpawnResult ACarlaActorFactory::SpawnActor ( const FTransform &  SpawnAtTransform,
const FActorDescription ActorDescription 
)
inlinevirtual

Spawn an actor based on ActorDescription and Transform.

Precondition
ActorDescription is expected to be derived from one of the definitions retrieved with GetDefinitions.

Reimplemented in ACarlaActorFactoryBlueprint, ASensorFactory, ATriggerFactory, AStaticMeshFactory, and AAIControllerFactory.

Definition at line 42 of file CarlaActorFactory.h.

Referenced by UActorDispatcher::Bind().

+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: