Navigation
API > API/Plugins > API/Plugins/PCG > API/Plugins/PCG/Elements
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UPCGData
- UPCGSettingsInterface
- UPCGSettings
- UPCGBaseSubgraphSettings
- UPCGSpawnActorSettings
References
| Module | PCG |
| Header | /Engine/Plugins/Experimental/PCG/Source/PCG/Public/Elements/PCGSpawnActor.h |
| Include | #include "Elements/PCGSpawnActor.h" |
Syntax
UCLASS&40;BlueprintType, ClassGroup&61;&40;Procedural&41;&41;
class UPCGSpawnActorSettings : public UPCGBaseSubgraphSettings
Remarks
PCG settings class that allows spawning actors with some options to perform the work more efficiently. Note that depending on the options, any PCG components on the spawned actors can be also generated, which is why this class derives from UPCGBaseSubgraphSettings - it has similar inner-workings to the subgraph node as far as data passing and dispatch go. Note that at this point in time, results from the underlying graphs being generated is not propagated back as results of this node.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TArray< FPCGActorPropertyOverride > | ActorOverrides | ||
| EPCGAttachOptions | AttachOptions | ||
| bool | bAllowTemplateActorEditing | ||
| bool | bForceDisableActorParsing | ||
| bool | bInheritActorTags | Warning: inheriting parent actor tags work only in non-collapsed actor hierarchies | |
| bool | bSpawnByAttribute | ||
| EPCGSpawnActorGenerationTrigger | GenerationTrigger | ||
| EPCGSpawnActorOption | Option | ||
| TArray< FName > | PostSpawnFunctionNames | Can specify a list of functions from the template class to be called on each actor spawned, in order. | |
| TSoftObjectPtr< AActor > | RootActor | ||
| FName | SpawnAttribute | ||
| TArray< FName > | TagsToAddOnActors | ||
| TObjectPtr< AActor > | TemplateActor | ||
| TSubclassOf< AActor > | TemplateActorClass |
Functions
| Type | Name | Description | |
|---|---|---|---|
| UPCGGraphInterface * | GetGraphInterfaceFromActorSubclass
(
TSubclassOf< AActor > InTemplateActorClass |
||
| void | OnBlueprintChanged
(
UBlueprint* Blueprint |
||
| void | |||
| void |
Overridden from UPCGBaseSubgraphSettings
| Type | Name | Description | |
|---|---|---|---|
| UPCGGraphInterface * | |||
| bool | When using spawn by attribute, the potential execution of subgraphs will be done in a dynamic manner. |
Overridden from UPCGSettings
| Type | Name | Description | |
|---|---|---|---|
| FPCGElementPtr | |||
| UPCGNode * | CreateNode () |
||
| FName | |||
| FText | |||
| EPCGSettingsType | GetType () |
||
| TArray< FPCGPinProperties > | Returns an array of all the input pin properties. You should not add manually a "params" pin, it is handled automatically by FillOverridableParamsPins. | ||
| bool | IsStructuralProperty
(
const FName& InPropertyName |
||
| TArray< FPCGPinProperties > |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | BeginDestroy () |
Called before destroying the object. | |
| void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Called when a property on this object has been modified externally | |
| void | PostEditUndo () |
Called after applying a transaction to the object. | |
| void | PostLoad () |
Do any object-specific cleanup required immediately after loading an object. | |
| void | PreEditChange
(
FProperty* PropertyAboutToChange |
This is called when a property is about to be modified externally | |
| void | PreEditUndo () |
Called before applying a transaction to the object. |
Deprecated Variables
| Type | Name | Description | |
|---|---|---|---|
| EPCGSpawnActorGenerationTrigger | bGenerationTrigger_DEPRECATED |