Navigation
API > API/Plugins > API/Plugins/PCG > API/Plugins/PCG/Elements
Inheritance Hierarchy
- IPCGElement
- FPCGStaticMeshSpawnerElement
References
| Module | PCG |
| Header | /Engine/Plugins/Experimental/PCG/Source/PCG/Public/Elements/PCGStaticMeshSpawner.h |
| Include | #include "Elements/PCGStaticMeshSpawner.h" |
Syntax
class FPCGStaticMeshSpawnerElement : public IPCGElement
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | SpawnStaticMeshInstances
(
FPCGContext* Context, |
Overridden from IPCGElement
| Type | Name | Description | |
|---|---|---|---|
| bool | CanExecuteOnlyOnMainThread
(
FPCGContext* Context |
Returns true if the element, in its current phase can be executed only from the main thread | |
| bool | ExecuteInternal
(
FPCGContext* Context |
Core execution method for the given element. Will be called until it returns true. | |
| FPCGContext * | Initialize
(
const FPCGDataCollection& InputData, |
Creates a custom context object paired to this element | |
| bool | IsCacheable
(
const UPCGSettings* InSettings |
Returns true if the node can be cached (e.g. does not create artifacts & does not depend on untracked data | |
| bool | PrepareDataInternal
(
FPCGContext* Context |
The prepare data phase is one where it is more likely to be able to multithread |