Navigation
API > API/Plugins > API/Plugins/PCG > API/Plugins/PCG/Helpers
Inheritance Hierarchy
- UBlueprintFunctionLibrary
- UPCGBlueprintHelpers
References
| Module | PCG |
| Header | /Engine/Plugins/PCG/Source/PCG/Public/Helpers/PCGBlueprintHelpers.h |
| Include | #include "Helpers/PCGBlueprintHelpers.h" |
Syntax
UCLASS ()
class UPCGBlueprintHelpers : public UBlueprintFunctionLibrary
Functions
| Type | Name | Description | |
|---|---|---|---|
| int | ComputeSeedFromPosition
(
const FVector& InPosition |
||
| UPCGData * | CreatePCGDataFromActor
(
AActor* InActor, |
||
| UPCGData * | DuplicateData
(
const UPCGData* InData, |
Implementation note: Needs to be done outside of UPCGData because of circular dependency between PCGContext.h and PCGData.h. | |
| bool | Flush the cache, to be used if you have changed something PCG depends on at runtime. | ||
| FBox | GetActorBoundsPCG
(
AActor* InActor, |
||
| UPCGData * | GetActorData
(
UPARAM(ref) FPCGContext& Context |
||
| FBox | GetActorLocalBoundsPCG
(
AActor* InActor, |
||
| UPCGComponent * | GetComponent
(
UPARAM(ref) FPCGContext& Context |
||
| FVector | GetExtents
(
const FPCGPoint& InPoint |
||
| UPCGData * | GetInputData
(
UPARAM(ref) FPCGContext& Context |
||
| TArray< FPCGLandscapeLayerWeight > | GetInterpolatedPCGLandscapeLayerWeights
(
UObject* WorldContextObject, |
||
| FVector | GetLocalCenter
(
const FPCGPoint& InPoint |
||
| UPCGComponent * | GetOriginalComponent
(
UPARAM(ref) FPCGContext& Context |
||
| FRandomStream | GetRandomStreamFromPoint
(
const FPCGPoint& InPoint, |
Creates a random stream from a point's seed and settings/component's seed (optional) | |
| FRandomStream | GetRandomStreamFromTwoPoints
(
const FPCGPoint& InPointA, |
Creates a random stream from using the random seeds from two points, as well as settings/component's seed (optional) | |
| const UPCGSettings * | GetSettings
(
UPARAM(ref) FPCGContext& Context |
||
| AActor * | GetTargetActor
(
UPARAM(ref) FPCGContext& Context, |
||
| int64 | GetTaskId
(
UPARAM(ref) FPCGContext& Context |
||
| FBox | GetTransformedBounds
(
const FPCGPoint& InPoint |
||
| void | RefreshPCGRuntimeComponent
(
UPCGComponent* InComponent, |
Refresh a component set to Generate At Runtime, if some parameters changed. | |
| void | SetExtents
(
UPARAM(ref) FPCGPoint& InPoint, |
||
| void | SetLocalCenter
(
UPARAM(ref) FPCGPoint& InPoint, |
||
| void | SetSeedFromPosition
(
UPARAM(ref) FPCGPoint& InPoint |
||
| void | ThrowBlueprintException
(
const FText& ErrorMessage |