unreal.PCGSplineData

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

Bases: PCGPolyLineData

PCGSpline Data

C++ Source:

  • Plugin: PCG

  • Module: PCG

  • File: PCGSplineData.h

Editor Properties: (see get_editor_property/set_editor_property)

  • keep_zero_density_points (bool): [Read-Write]

  • target_actor (Actor): [Read-Write] Recipient of any artifacts generated using this data.

get_metadata_entry_keys_for_spline_points() Array[int64]

Get Metadata Entry Keys for Spline Points

Return type:

Array[int64]

get_spline_points() Array[SplinePoint]

Get Spline Points

Return type:

Array[SplinePoint]

initialize(spline) None

Initialize a spline data from a Spline Component.

Parameters:

spline (SplineComponent)

k2_initialize(spline_points, closed_loop, transform, optional_entry_keys) None

Initialize a spline data

Parameters:
  • spline_points (Array[SplinePoint]) – List of control points.

  • closed_loop (bool) – If the spline is closed or not.

  • transform (Transform) – Transform of the spline

  • optional_entry_keys (Array[int64]) – Optional list of metadata entry keys to setup for the control points. Need to the same size as the number of control points.