unreal.PCGBlueprintHelpers¶
- class unreal.PCGBlueprintHelpers(outer: Object | None = None, name: Name | str = 'None')¶
Bases:
BlueprintFunctionLibraryPCGBlueprint 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 duplicate_data(data, context, initialize_metadata=True) -> (PCGData, context=PCGContext)¶
Prefer using DuplicateDataWithContext
- Parameters:
data (PCGData)
context (PCGContext)
initialize_metadata (bool)
- Returns:
context (PCGContext):
- Return type:
- classmethod duplicate_data_with_context(data, context_handle, initialize_metadata=True) PCGData¶
Return a copy of the data, with Metadata inheritance for spatial data.
- Parameters:
data (PCGData)
context_handle (PCGBlueprintContextHandle)
initialize_metadata (bool)
- Return type:
- classmethod flush_pcg_cache() bool¶
Flush the cache, to be used if you have changed something PCG depends on at runtime. Same as pcg.FlushCache command. Returns true if it succeeded.
- Return type:
- classmethod get_actor_bounds_pcg(actor, ignore_pcg_created_components=True) Box¶
Get Actor Bounds PCG
- classmethod get_actor_data(context) -> (PCGData, context=PCGContext)¶
Prefer using GetActorDataWithContext
- Parameters:
context (PCGContext)
- Returns:
context (PCGContext):
- Return type:
- classmethod get_actor_data_with_context(context_handle) PCGData¶
Get Actor Data with Context
- Parameters:
context_handle (PCGBlueprintContextHandle)
- 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)¶
Prefer using GetComponentWithContext
- Parameters:
context (PCGContext)
- Returns:
context (PCGContext):
- Return type:
- classmethod get_component_with_context(context_handle) PCGComponent¶
Get Component with Context
- Parameters:
context_handle (PCGBlueprintContextHandle)
- Return type:
- classmethod get_input_data(context) -> (PCGData, context=PCGContext)¶
Prefer using GetInputDataWithContext
- Parameters:
context (PCGContext)
- Returns:
context (PCGContext):
- Return type:
- classmethod get_input_data_with_context(context_handle) PCGData¶
Get Input Data with Context
- Parameters:
context_handle (PCGBlueprintContextHandle)
- 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)¶
Prefer using GetOriginalComponentWithContext
- Parameters:
context (PCGContext)
- Returns:
context (PCGContext):
- Return type:
- classmethod get_original_component_with_context(context_handle) PCGComponent¶
Get Original Component with Context
- Parameters:
context_handle (PCGBlueprintContextHandle)
- 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)¶
Prefer using GetSettingsWithContext
- Parameters:
context (PCGContext)
- Returns:
context (PCGContext):
- Return type:
- classmethod get_settings_with_context(context_handle) PCGSettings¶
Get Settings with Context
- Parameters:
context_handle (PCGBlueprintContextHandle)
- Return type:
- classmethod get_target_actor(context, spatial_data) -> (Actor, context=PCGContext)¶
Prefer using GetTargetActorWithContext
- Parameters:
context (PCGContext)
spatial_data (PCGSpatialData)
- Returns:
context (PCGContext):
- Return type:
- classmethod get_target_actor_with_context(context_handle, spatial_data) Actor¶
Get Target Actor with Context
- Parameters:
context_handle (PCGBlueprintContextHandle)
spatial_data (PCGSpatialData)
- Return type:
- classmethod get_task_id(context) -> (int64, context=PCGContext)¶
Prefer using GetTaskIdWithContext
- Parameters:
context (PCGContext)
- Returns:
context (PCGContext):
- Return type:
- classmethod get_task_id_with_context(context_handle) int64¶
Get Task Id with Context
- Parameters:
context_handle (PCGBlueprintContextHandle)
- Return type:
int64
- classmethod refresh_pcg_runtime_component(component, flush_cache=False) None¶
Refresh a component set to Generate At Runtime, if some parameters changed. Can also flush the cache.
- Parameters:
component (PCGComponent)
flush_cache (bool)