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)

Bases: StructBase

PCGSpline Mesh Params

C++ Source:

  • Plugin: PCG

  • Module: PCG

  • File: PCGSplineMeshParams.h

Editor Properties: (see get_editor_property/set_editor_property)

  • 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.

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)