Navigation
API > API/Plugins > API/Plugins/PCG > API/Plugins/PCG/Elements
Inheritance Hierarchy
- UObject
- UPCGData
- UPCGSettingsInterface
- UPCGSettings
- UPCGStaticMeshSpawnerSettings
References
| Module | PCG |
| Header | /Engine/Plugins/PCG/Source/PCG/Public/Elements/PCGStaticMeshSpawner.h |
| Include | #include "Elements/PCGStaticMeshSpawner.h" |
Syntax
UCLASS (BlueprintType, ClassGroup=(Procedural), Meta=(prioritizeCategories="Settings"))
class UPCGStaticMeshSpawnerSettings : public UPCGSettings
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bAllowDescriptorChanges | Allows PCG to make some changes on the descriptors as situation arises (using ISM instead of HISM for nanite meshes, etc.) | |
| bool | bApplyMeshBoundsToPoints | Sets the BoundsMin and BoundsMax attributes of each point to reflect the StaticMesh spawned at its location | |
| bool | bSilenceOverrideAttributeNotFoundErrors | Opt-in option to silence errors when the property override attributes are not found. | |
| bool | bSynchronousLoad | Meshes/Materials will be synchronously loaded before spawning instead of asynchronously. | |
| bool | bWarnOnIdenticalSpawn | Adds a warning to the node on repeated spawning with identical conditions (ie. same mesh descriptor at same spawn location, etc). | |
| TObjectPtr< UPCGInstanceDataPackerBase > | InstanceDataPackerParameters | ||
| TSubclassOf< UPCGInstanceDataPackerBase > | InstanceDataPackerType | Defines the method of custom data packing for spawned (H)ISMCs. | |
| TObjectPtr< UPCGMeshSelectorBase > | MeshSelectorParameters | ||
| TSubclassOf< UPCGMeshSelectorBase > | MeshSelectorType | Defines the method of mesh selection per input data | |
| FName | OutAttributeName | Attribute name to store mesh SoftObjectPaths inside if the output pin is connected. | |
| TArray< FName > | PostProcessFunctionNames | Specify a list of functions to be called on the target actor after instances are spawned. | |
| TArray< FPCGObjectPropertyOverrideDescription > | StaticMeshComponentPropertyOverrides | Map an attribute directly to an ISM Descriptor property, the value of which will be overriden when generated. | |
| TSoftObjectPtr< AActor > | TargetActor |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UPCGStaticMeshSpawnerSettings
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | |||
| void | |||
| void | SetInstancePackerType
(
TSubclassOf< UPCGInstanceDataPackerBase > InInstancePackerType |
||
| void | SetMeshSelectorType
(
TSubclassOf< UPCGMeshSelectorBase > InMeshSelectorType |
Overridden from UPCGSettings
| Type | Name | Description | |
|---|---|---|---|
| void | AddStaticCreatedStrings
(
TArray< FString >& InOutStringTable |
[EXPERIMENTAL] Add any strings emitted by this node that are known statically at compile time. | |
| void | ApplyDeprecation
(
UPCGNode* InOutNode |
Any final migration/recovery that can be done after pins are finalized. | |
| bool | CanEditChange
(
const FProperty* InProperty |
Passthrough for the simpler method, to avoid modifying the child settings already overriding this method. | |
| int | ComputeKernelThreadCount
(
const UPCGDataBinding* Binding |
[EXPERIMENTAL] Compute how many threads should be dispatched to execute this node on the GPU. | |
| bool | ComputeOutputPinDataDesc
(
const UPCGPin* OutputPin, |
[EXPERIMENTAL] Compute a description of data that will be output from OutputPinLabel/OutputPin. | |
| void | CreateAdditionalInputDataInterfaces
(
FPCGGPUCompilationContext& InOutContext, |
[EXPERIMENTAL] Create additional input data interfaces to marshal any required input data. | |
| void | CreateAdditionalOutputDataInterfaces
(
FPCGGPUCompilationContext& InOutContext, |
[EXPERIMENTAL] Create additional output data interfaces to marshal any required output data. | |
| FPCGElementPtr | |||
| bool | [EXPERIMENTAL] Whether to display GPU execution option in node settings UI. | ||
| FString | GetCookedKernelSource
(
const TMap< FName, FPCGKernelAttributeIDAndType >& GlobalAttributeLookupTable |
[EXPERIMENTAL] Produces the node specific portion of kernel shader source text, including the main entry point. | |
| FName | |||
| FText | |||
| void | GetKernelAttributeKeys
(
TArray< FPCGKernelAttributeKey >& OutKeys |
[EXPERIMENTAL] Get a list of the attributes read or written by this node. | |
| 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 | IsKernelValid
(
FPCGContext* InContext, |
[EXPERIMENTAL] Performs validation and returns true if this node is suitable for deployment to the GPU. | |
| TArray< FPCGPinProperties > | |||
| void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
||
| void | PostLoad () |
||
| bool | UseSeed () |
By default, settings do not use a seed. |
Constants
| Name | Description |
|---|---|
| TemplateFilePath |