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 get_actor_bounds_pcg(actor, ignore_pcg_created_components=True) Box ¶
Get Actor Bounds PCG
- classmethod get_actor_data(context) -> (PCGData, context=PCGContext)¶
Get Actor Data
- Parameters:
context (PCGContext) –
- Returns:
context (PCGContext):
- Return type:
- classmethod get_actor_local_bounds_pcg(actor, ignore_pcg_created_components=True) Box ¶
Get Actor Local Bounds PCG
- classmethod get_component(context) -> (PCGComponent, context=PCGContext)¶
Get Component
- Parameters:
context (PCGContext) –
- Returns:
context (PCGContext):
- Return type:
- classmethod get_input_data(context) -> (PCGData, context=PCGContext)¶
Get Input Data
- Parameters:
context (PCGContext) –
- Returns:
context (PCGContext):
- Return type:
- classmethod get_interpolated_pcg_landscape_layer_weights(world_context_object, location) Array[PCGLandscapeLayerWeight] ¶
Get Interpolated PCGLandscape Layer Weights
- Parameters:
- Return type:
- classmethod get_original_component(context) -> (PCGComponent, context=PCGContext)¶
Get Original Component
- Parameters:
context (PCGContext) –
- Returns:
context (PCGContext):
- Return type:
- 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:
point (PCGPoint) –
optional_settings (PCGSettings) –
optional_component (PCGComponent) –
- Return type:
- 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:
point_a (PCGPoint) –
point_b (PCGPoint) –
optional_settings (PCGSettings) –
optional_component (PCGComponent) –
- Return type:
- classmethod get_settings(context) -> (PCGSettings, context=PCGContext)¶
Get Settings
- Parameters:
context (PCGContext) –
- Returns:
context (PCGContext):
- Return type:
- classmethod get_target_actor(context, spatial_data) -> (Actor, context=PCGContext)¶
Get Target Actor
- Parameters:
context (PCGContext) –
spatial_data (PCGSpatialData) –
- Returns:
context (PCGContext):
- Return type:
- classmethod get_task_id(context) -> (int64, context=PCGContext)¶
Get Task Id
- Parameters:
context (PCGContext) –
- Returns:
context (PCGContext):
- Return type: