unreal.PCGSplineMeshParams

class unreal.PCGSplineMeshParams(forward_axis: PCGSplineMeshForwardAxis = Ellipsis, scale_mesh_to_bounds: bool = False, scale_mesh_to_landscape_spline_full_width: bool = False, spline_up_dir: Vector = Ellipsis, nanite_cluster_bounds_scale: float = 0.0, spline_boundary_min: float = 0.0, spline_boundary_max: float = 0.0, smooth_interp_roll_scale: bool = False, start_offset: Vector2D = Ellipsis, end_offset: Vector2D = Ellipsis)

Bases: StructBase

PCGSpline Mesh Params

C++ Source:

  • Plugin: PCG

  • Module: PCG

  • File: PCGSplineMeshParams.h

Editor Properties: (see get_editor_property/set_editor_property)

  • end_offset (Vector2D): [Read-Write] Ending offset of the mesh from the spline, in component space.

  • end_roll_degrees (float): [Read-Only] End roll of the mesh. Computed automatically so can’t be set there, but can be overridden in the Spline Mesh Params Overrides, if needed.

  • forward_axis (PCGSplineMeshForwardAxis): [Read-Write] Chooses the forward axis for the spline mesh orientation.

  • nanite_cluster_bounds_scale (float): [Read-Write] How much to scale the calculated culling bounds of Nanite clusters after deformation. NOTE: This should only be set greater than 1.0 if it fixes visible issues with clusters being incorrectly culled.

  • scale_mesh_to_bounds (bool): [Read-Write] Scale mesh to the spline control point bounds. Especially useful on Landscape Splines, where the bounds come from the width.

  • scale_mesh_to_landscape_spline_full_width (bool): [Read-Write] Scale the mesh to the full width of the Landscape Spline (including Falloff). Only applies to Landscape Splines.

  • smooth_interp_roll_scale (bool): [Read-Write] If true, will use smooth interpolation (ease in/out) for Scale, Roll, and Offset along this section of spline. If false, uses linear.

  • spline_boundary_max (float): [Read-Write] Maximum coordinate along the spline forward axis which corresponds to end of spline. If set to 0.0, will use bounding box to determine bounds.

  • spline_boundary_min (float): [Read-Write] Minimum coordinate along the spline forward axis which corresponds to start of spline. If set to 0.0, will use bounding box to determine bounds.

  • spline_up_dir (Vector): [Read-Write] Axis (in component space) that is used to determine X axis for coordinates along spline.

  • start_offset (Vector2D): [Read-Write] Starting offset of the mesh from the spline, in component space.

  • start_roll_degrees (float): [Read-Only] Start roll of the mesh. Computed automatically so can’t be set there, but can be overridden in the Spline Mesh Params Overrides, if needed.

property end_offset: Vector2D

[Read-Write] Ending offset of the mesh from the spline, in component space.

Type:

(Vector2D)

property forward_axis: PCGSplineMeshForwardAxis

[Read-Write] Chooses the forward axis for the spline mesh orientation.

Type:

(PCGSplineMeshForwardAxis)

property nanite_cluster_bounds_scale: float

[Read-Write] How much to scale the calculated culling bounds of Nanite clusters after deformation. NOTE: This should only be set greater than 1.0 if it fixes visible issues with clusters being incorrectly culled.

Type:

(float)

property scale_mesh_to_bounds: bool

[Read-Write] Scale mesh to the spline control point bounds. Especially useful on Landscape Splines, where the bounds come from the width.

Type:

(bool)

property scale_mesh_to_landscape_spline_full_width: bool

[Read-Write] Scale the mesh to the full width of the Landscape Spline (including Falloff). Only applies to Landscape Splines.

Type:

(bool)

property smooth_interp_roll_scale: bool

[Read-Write] If true, will use smooth interpolation (ease in/out) for Scale, Roll, and Offset along this section of spline. If false, uses linear.

Type:

(bool)

property spline_boundary_max: float

[Read-Write] Maximum coordinate along the spline forward axis which corresponds to end of spline. If set to 0.0, will use bounding box to determine bounds.

Type:

(float)

property spline_boundary_min: float

[Read-Write] Minimum coordinate along the spline forward axis which corresponds to start of spline. If set to 0.0, will use bounding box to determine bounds.

Type:

(float)

property spline_up_dir: Vector

[Read-Write] Axis (in component space) that is used to determine X axis for coordinates along spline.

Type:

(Vector)

property start_offset: Vector2D

[Read-Write] Starting offset of the mesh from the spline, in component space.

Type:

(Vector2D)