unreal.PCGBlueprintHelpers

class unreal.PCGBlueprintHelpers(outer: Object | None = None, name: Name | str = 'None')

Bases: BlueprintFunctionLibrary

PCGBlueprint Helpers

C++ Source:

  • Plugin: PCG

  • Module: PCG

  • File: PCGBlueprintHelpers.h

classmethod compute_seed_from_position(position) int32

Compute Seed from Position

Parameters:

position (Vector) –

Return type:

int32

classmethod create_pcg_data_from_actor(actor, parse_actor=True) PCGData

Create PCGData from Actor

Parameters:
Return type:

PCGData

classmethod get_actor_bounds_pcg(actor, ignore_pcg_created_components=True) Box

Get Actor Bounds PCG

Parameters:
  • actor (Actor) –

  • ignore_pcg_created_components (bool) –

Return type:

Box

classmethod get_actor_data(context) -> (PCGData, context=PCGContext)

Get Actor Data

Parameters:

context (PCGContext) –

Returns:

context (PCGContext):

Return type:

PCGContext

classmethod get_actor_local_bounds_pcg(actor, ignore_pcg_created_components=True) Box

Get Actor Local Bounds PCG

Parameters:
  • actor (Actor) –

  • ignore_pcg_created_components (bool) –

Return type:

Box

classmethod get_component(context) -> (PCGComponent, context=PCGContext)

Get Component

Parameters:

context (PCGContext) –

Returns:

context (PCGContext):

Return type:

PCGContext

classmethod get_extents(point) Vector

Get Extents

Parameters:

point (PCGPoint) –

Return type:

Vector

classmethod get_input_data(context) -> (PCGData, context=PCGContext)

Get Input Data

Parameters:

context (PCGContext) –

Returns:

context (PCGContext):

Return type:

PCGContext

classmethod get_interpolated_pcg_landscape_layer_weights(world_context_object, location) Array[PCGLandscapeLayerWeight]

Get Interpolated PCGLandscape Layer Weights

Parameters:
Return type:

Array[PCGLandscapeLayerWeight]

classmethod get_local_center(point) Vector

Get Local Center

Parameters:

point (PCGPoint) –

Return type:

Vector

classmethod get_original_component(context) -> (PCGComponent, context=PCGContext)

Get Original Component

Parameters:

context (PCGContext) –

Returns:

context (PCGContext):

Return type:

PCGContext

classmethod get_random_stream(point: PCGPoint, optional_settings: PCGSettings = Ellipsis, optional_component: PCGComponent = Ellipsis) RandomStream

deprecated: ‘get_random_stream’ was renamed to ‘get_random_stream_from_point’.

classmethod get_random_stream_from_point(point, optional_settings=None, optional_component=None) RandomStream

Creates a random stream from a point’s seed and settings/component’s seed (optional)

Parameters:
Return type:

RandomStream

classmethod get_random_stream_from_two_points(point_a, point_b, optional_settings=None, optional_component=None) RandomStream

Creates a random stream from using the random seeds from two points, as well as settings/component’s seed (optional)

Parameters:
Return type:

RandomStream

classmethod get_settings(context) -> (PCGSettings, context=PCGContext)

Get Settings

Parameters:

context (PCGContext) –

Returns:

context (PCGContext):

Return type:

PCGContext

classmethod get_target_actor(context, spatial_data) -> (Actor, context=PCGContext)

Get Target Actor

Parameters:
Returns:

context (PCGContext):

Return type:

PCGContext

classmethod get_task_id(context) -> (int64, context=PCGContext)

Get Task Id

Parameters:

context (PCGContext) –

Returns:

context (PCGContext):

Return type:

PCGContext

classmethod get_transformed_bounds(point) Box

Get Transformed Bounds

Parameters:

point (PCGPoint) –

Return type:

Box

classmethod set_extents(point, extents) PCGPoint

Set Extents

Parameters:
Returns:

point (PCGPoint):

Return type:

PCGPoint

classmethod set_local_center(point, local_center) PCGPoint

Set Local Center

Parameters:
Returns:

point (PCGPoint):

Return type:

PCGPoint

classmethod set_seed_from_position(point) PCGPoint

Set Seed from Position

Parameters:

point (PCGPoint) –

Returns:

point (PCGPoint):

Return type:

PCGPoint