unreal.SplineComponent

class unreal.SplineComponent(outer=None, name='None')

Bases: unreal.PrimitiveComponent

A spline component is a spline shape which can be used for other purposes (e.g. animating objects). It contains debug rendering capabilities. see: https://docs.unrealengine.com/latest/INT/Resources/ContentExamples/Blueprint_Splines

C++ Source:

  • Module: Engine

  • File: SplineComponent.h

Editor Properties: (see get_editor_property/set_editor_property)

  • absolute_location (bool): [Read-Write] If RelativeLocation should be considered relative to the world, rather than the parent

  • absolute_rotation (bool): [Read-Write] If RelativeRotation should be considered relative to the world, rather than the parent

  • absolute_scale (bool): [Read-Write] If RelativeScale3D should be considered relative to the world, rather than the parent

  • affect_distance_field_lighting (bool): [Read-Write] Controls whether the primitive should affect dynamic distance field lighting methods. This flag is only used if CastShadow is true. *

  • affect_dynamic_indirect_lighting (bool): [Read-Write] Controls whether the primitive should inject light into the Light Propagation Volume. This flag is only used if CastShadow is true. *

  • allow_cull_distance_volume (bool): [Read-Write] Whether to accept cull distance volumes to modify cached cull distance.

  • allow_discontinuous_spline (bool): [Read-Write] Whether the spline’s leave and arrive tangents can be different

  • always_create_physics_state (bool): [Read-Write] Indicates if we’d like to create physics state all the time (for collision and simulation). If you set this to false, it still will create physics state if collision or simulation activated. This can help performance if you’d like to avoid overhead of creating physics state when triggers

  • apply_impulse_on_damage (bool): [Read-Write] True for damage to this component to apply physics impulse, false to opt out of these impulses.

  • asset_user_data (Array(AssetUserData)): [Read-Write] Array of user data stored with the component

  • auto_activate (bool): [Read-Write] Whether the component is activated at creation or must be explicitly activated.

  • batch_imposters_as_instances (bool): [Read-Write] If true, the proxy generation process will use instancing to render this imposter

  • body_instance (BodyInstance): [Read-Write] Physics scene information for this component, holds a single rigid body with multiple shapes.

  • bounds_scale (float): [Read-Write] Scales the bounds of the object. This is useful when using World Position Offset to animate the vertices of the object outside of its bounds. Warning: Increasing the bounds of an object will reduce performance and shadow quality! Currently only used by StaticMeshComponent and SkeletalMeshComponent.

  • cached_max_draw_distance (float): [Read-Only] The distance to cull this primitive at. A CachedMaxDrawDistance of 0 indicates that the primitive should not be culled by distance.

  • can_character_step_up_on (CanBeCharacterBase): [Read-Write] Determine whether a Character can step up onto this component. This controls whether they can try to step up on it when they bump in to it, not whether they can walk on it after landing on it. see: FWalkableSlopeOverride

  • can_ever_affect_navigation (bool): [Read-Write] Whether this component can potentially influence navigation

  • cast_cinematic_shadow (bool): [Read-Write] Whether this component should cast shadows from lights that have bCastShadowsFromCinematicObjectsOnly enabled. This is useful for characters in a cinematic with special cinematic lights, where the cost of shadowmap rendering of the environment is undesired.

  • cast_contact_shadow (bool): [Read-Write] Whether the object should cast contact shadows. This flag is only used if CastShadow is true.

  • cast_dynamic_shadow (bool): [Read-Write] Controls whether the primitive should cast shadows in the case of non precomputed shadowing. This flag is only used if CastShadow is true. *

  • cast_far_shadow (bool): [Read-Write] When enabled, the component will be rendering into the far shadow cascades (only for directional lights).

  • cast_hidden_shadow (bool): [Read-Write] If true, the primitive will cast shadows even if bHidden is true. Controls whether the primitive should cast shadows when hidden. This flag is only used if CastShadow is true.

  • cast_inset_shadow (bool): [Read-Write] Whether this component should create a per-object shadow that gives higher effective shadow resolution. Useful for cinematic character shadowing. Assumed to be enabled if bSelfShadowOnly is enabled.

  • cast_shadow (bool): [Read-Write] Controls whether the primitive component should cast a shadow or not.

  • cast_shadow_as_two_sided (bool): [Read-Write] Whether this primitive should cast dynamic shadows as if it were a two sided material.

  • cast_static_shadow (bool): [Read-Write] Whether the object should cast a static shadow from shadow casting lights. This flag is only used if CastShadow is true.

  • cast_volumetric_translucent_shadow (bool): [Read-Write] Whether the object should cast a volumetric translucent shadow. Volumetric translucent shadows are useful for primitives with smoothly changing opacity like particles representing a volume, But have artifacts when used on highly opaque surfaces.

  • closed_loop (bool): [Read-Write] Whether the spline is to be considered as a closed loop. Use SetClosedLoop() to set this property, and IsClosedLoop() to read it.

  • component_tags (Array(Name)): [Read-Write] Array of tags that can be used for grouping and categorizing. Can also be accessed from scripting.

  • custom_depth_stencil_value (int32): [Read-Write] Optionally write this 0-255 value to the stencil buffer in CustomDepth pass (Requires project setting or r.CustomDepth == 3)

  • custom_depth_stencil_write_mask (RendererStencilMask): [Read-Write] Mask used for stencil buffer writes.

  • custom_primitive_data (CustomPrimitiveData): [Read-Write] Optional user defined default values for the custom primitive data of this primitive

  • default_up_vector (Vector): [Read-Write] Default up vector in local space to be used when calculating transforms along the spline

  • detail_mode (DetailMode): [Read-Write] If detail mode is >= system detail mode, primitive won’t be rendered.

  • draw_debug (bool): [Read-Write] If true, the spline will be rendered if the Splines showflag is set.

  • duration (float): [Read-Write] Specifies the duration of the spline in seconds

  • editable_when_inherited (bool): [Read-Write] True if this component can be modified when it was inherited from a parent actor class

  • editor_selected_spline_segment_color (LinearColor): [Read-Write] Color of a selected spline component segment in the editor

  • editor_tangent_color (LinearColor): [Read-Write] Color of spline point tangent in the editor

  • editor_unselected_spline_segment_color (LinearColor): [Read-Write] Color of an unselected spline component segment in the editor

  • enable_auto_lod_generation (bool): [Read-Write] If true, and if World setting has bEnableHierarchicalLOD equal to true, then this component will be included when generating a Proxy mesh for the parent Actor

  • exclude_for_specific_hlod_levels (Array(int32)): [Read-Write] Which specific HLOD levels this component should be excluded from

  • exclude_from_light_attachment_group (bool): [Read-Write] If set, then it overrides any bLightAttachmentsAsGroup set in a parent.

  • fill_collision_underneath_for_navmesh (bool): [Read-Write] If set, navmesh will not be generated under the surface of the geometry

  • force_mip_streaming (bool): [Read-Write] If true, forces mips for textures used by this component to be resident when this component’s level is loaded.

  • generate_overlap_events (bool): [Read-Write] Generate Overlap Events

  • hidden_in_game (bool): [Read-Write] Whether to hide the primitive in game, if the primitive is Visible.

  • hidden_in_scene_capture (bool): [Read-Write] When true, will not be captured by Scene Capture

  • ignore_radial_force (bool): [Read-Write] Will ignore radial forces applied to this component.

  • ignore_radial_impulse (bool): [Read-Write] Will ignore radial impulses applied to this component.

  • indirect_lighting_cache_quality (IndirectLightingCacheQuality): [Read-Write] Quality of indirect lighting for Movable primitives. This has a large effect on Indirect Lighting Cache update time.

  • input_spline_points_to_construction_script (bool): [Read-Write] Whether the spline points should be passed to the User Construction Script so they can be further manipulated by it. If false, they will not be visible to it, and it will not be able to influence the per-instance positions set in the editor.

  • is_editor_only (bool): [Read-Write] If true, the component will be excluded from non-editor builds

  • ld_max_draw_distance (float): [Read-Write] Max draw distance exposed to LDs. The real max draw distance is the min (disregarding 0) of this and volumes affecting this object.

  • light_attachments_as_group (bool): [Read-Write] Whether to light this component and any attachments as a group. This only has effect on the root component of an attachment tree. When enabled, attached component shadowing settings like bCastInsetShadow, bCastVolumetricTranslucentShadow, etc, will be ignored. This is useful for improving performance when multiple movable components are attached together.

  • lighting_channels (LightingChannels): [Read-Write] Channels that this component should be in. Lights with matching channels will affect the component. These channels only apply to opaque materials, direct lighting, and dynamic lighting and shadowing.

  • lightmap_type (LightmapType): [Read-Write] Controls the type of lightmap used for this component.

  • loop_position (float): [Read-Write] Loop Position

  • loop_position_override (bool): [Read-Write] Loop Position Override

  • lpv_bias_multiplier (float): [Read-Write] Multiplier used to scale the Light Propagation Volume light injection bias, to reduce light bleeding. Set to 0 for no bias, 1 for default or higher for increased biasing (e.g. for thin geometry such as walls)

  • min_draw_distance (float): [Read-Write] The minimum distance at which the primitive should be rendered, measured in world space units from the center of the primitive’s bounding sphere to the camera position.

  • mobility (ComponentMobility): [Read-Write] How often this component is allowed to move, used to make various optimizations. Only safe to set in constructor.

  • multi_body_overlap (bool): [Read-Write] If true, this component will generate individual overlaps for each overlapping physics body if it is a multi-body component. When false, this component will generate only one overlap, regardless of how many physics bodies it has and how many of them are overlapping another component/body. This flag has no influence on single body components.

  • never_distance_cull (bool): [Read-Write] When enabled this object will not be culled by distance. This is ignored if a child of a HLOD.

  • on_begin_cursor_over (ComponentBeginCursorOverSignature): [Read-Write] Event called when the mouse cursor is moved over this component and mouse over events are enabled in the player controller

  • on_clicked (ComponentOnClickedSignature): [Read-Write] Event called when the left mouse button is clicked while the mouse is over this component and click events are enabled in the player controller

  • on_component_activated (ActorComponentActivatedSignature): [Read-Write] Called when the component has been activated, with parameter indicating if it was from a reset

  • on_component_begin_overlap (ComponentBeginOverlapSignature): [Read-Write] Event called when something starts to overlaps this component, for example a player walking into a trigger. For events when objects have a blocking collision, for example a player hitting a wall, see ‘Hit’ events. note: Both this component and the other one must have GetGenerateOverlapEvents() set to true to generate overlap events. note: When receiving an overlap from another object’s movement, the directions of ‘Hit.Normal’ and ‘Hit.ImpactNormal’ will be adjusted to indicate force from the other object against this object.

  • on_component_deactivated (ActorComponentDeactivateSignature): [Read-Write] Called when the component has been deactivated

  • on_component_end_overlap (ComponentEndOverlapSignature): [Read-Write] Event called when something stops overlapping this component note: Both this component and the other one must have GetGenerateOverlapEvents() set to true to generate overlap events.

  • on_component_hit (ComponentHitSignature): [Read-Write] Event called when a component hits (or is hit by) something solid. This could happen due to things like Character movement, using Set Location with ‘sweep’ enabled, or physics simulation. For events when objects overlap (e.g. walking into a trigger) see the ‘Overlap’ event. note: For collisions during physics simulation to generate hit events, ‘Simulation Generates Hit Events’ must be enabled for this component. note: When receiving a hit from another object’s movement, the directions of ‘Hit.Normal’ and ‘Hit.ImpactNormal’ will be adjusted to indicate force from the other object against this object. note: NormalImpulse will be filled in for physics-simulating bodies, but will be zero for swept-component blocking collisions.

  • on_component_sleep (ComponentSleepSignature): [Read-Write] Event called when the underlying physics objects is put to sleep

  • on_component_wake (ComponentWakeSignature): [Read-Write] Event called when the underlying physics objects is woken up

  • on_end_cursor_over (ComponentEndCursorOverSignature): [Read-Write] Event called when the mouse cursor is moved off this component and mouse over events are enabled in the player controller

  • on_input_touch_begin (ComponentOnInputTouchBeginSignature): [Read-Write] Event called when a touch input is received over this component when touch events are enabled in the player controller

  • on_input_touch_end (ComponentOnInputTouchEndSignature): [Read-Write] Event called when a touch input is released over this component when touch events are enabled in the player controller

  • on_input_touch_enter (ComponentBeginTouchOverSignature): [Read-Write] Event called when a finger is moved over this component when touch over events are enabled in the player controller

  • on_input_touch_leave (ComponentEndTouchOverSignature): [Read-Write] Event called when a finger is moved off this component when touch over events are enabled in the player controller

  • on_released (ComponentOnReleasedSignature): [Read-Write] Event called when the left mouse button is released while the mouse is over this component click events are enabled in the player controller

  • only_owner_see (bool): [Read-Write] If this is True, this component will only be visible when the view actor is the component’s owner, directly or indirectly.

  • owner_no_see (bool): [Read-Write] If this is True, this component won’t be visible when the view actor is the component’s owner, directly or indirectly.

  • physics_volume_changed_delegate (PhysicsVolumeChanged): [Read-Write] Delegate that will be called when PhysicsVolume has been changed *

  • primary_component_tick (ActorComponentTickFunction): [Read-Write] Main tick function for the Component

  • receive_mobile_csm_shadows (bool): [Read-Write] Mobile only: If disabled this component will not receive CSM shadows. (Components that do not receive CSM may have reduced shading cost)

  • receives_decals (bool): [Read-Write] Whether the primitive receives decals.

  • relative_location (Vector): [Read-Write] Location of the component relative to its parent

  • relative_rotation (Rotator): [Read-Write] Rotation of the component relative to its parent

  • relative_scale3d (Vector): [Read-Write] Non-uniform scaling of the component relative to its parent. Note that scaling is always applied in local space (no shearing etc)

  • render_custom_depth (bool): [Read-Write] If true, this component will be rendered in the CustomDepth pass (usually used for outlines)

  • render_in_depth_pass (bool): [Read-Write] If true, this component will be rendered in the depth pass even if it’s not rendered in the main pass

  • render_in_main_pass (bool): [Read-Write] If true, this component will be rendered in the main pass (z prepass, basepass, transparency)

  • reparam_steps_per_segment (int32): [Read-Write] Number of steps per spline segment to place in the reparameterization table

  • replicate_physics_to_autonomous_proxy (bool): [Read-Write] True if physics should be replicated to autonomous proxies. This should be true for

    server-authoritative simulations, and false for client authoritative simulations.

  • replicates (bool): [Read-Write] Is this component currently replicating? Should the network code consider it for replication? Owning Actor must be replicating first!

  • return_material_on_move (bool): [Read-Write] If true, component sweeps will return the material in their hit result. see: MoveComponent(), FHitResult

  • runtime_virtual_textures (Array(RuntimeVirtualTexture)): [Read-Write] Array of runtime virtual textures into which we draw the mesh for this actor. The material also needs to be set up to output to a virtual texture.

  • scale_visualization_width (float): [Read-Write] Width of spline in editor for use with scale visualization

  • self_shadow_only (bool): [Read-Write] When enabled, the component will only cast a shadow on itself and not other components in the world. This is especially useful for first person weapons, and forces bCastInsetShadow to be enabled.

  • should_update_physics_volume (bool): [Read-Write] Whether or not the cached PhysicsVolume this component overlaps should be updated when the component is moved. see: GetPhysicsVolume()

  • should_visualize_scale (bool): [Read-Write] Whether scale visualization should be displayed

  • single_sample_shadow_from_stationary_lights (bool): [Read-Write] Whether the whole component should be shadowed as one from stationary lights, which makes shadow receiving much cheaper. When enabled shadowing data comes from the volume lighting samples precomputed by Lightmass, which are very sparse. This is currently only used on stationary directional lights.

  • spline_curves (SplineCurves): [Read-Write] Spline Curves

  • spline_has_been_edited (bool): [Read-Write] Whether the spline has been edited from its default by the spline component visualizer

  • stationary_endpoints (bool): [Read-Write] Whether the endpoints of the spline are considered stationary when traversing the spline at non-constant velocity. Essentially this sets the endpoints’ tangents to zero vectors.

  • trace_complex_on_move (bool): [Read-Write] If true, component sweeps with this component should trace against complex collision during movement (for example, each triangle of a mesh). If false, collision will be resolved against simple collision bounds instead. see: MoveComponent()

  • translucency_sort_distance_offset (float): [Read-Write] Modified sort distance offset for translucent objects in world units. A positive number will move the sort distance further and a negative number will move the distance closer.

    Ignored if the object is not translucent. Warning: Adjusting this value will prevent the renderer from correctly sorting based on distance. Only modify this value if you are certain it will not cause visual artifacts.

  • translucency_sort_priority (int32): [Read-Write] Translucent objects with a lower sort priority draw behind objects with a higher priority. Translucent objects with the same priority are rendered from back-to-front based on their bounds origin. This setting is also used to sort objects being drawn into a runtime virtual texture.

    Ignored if the object is not translucent. The default priority is zero. Warning: This should never be set to a non-default value unless you know what you are doing, as it will prevent the renderer from sorting correctly. It is especially problematic on dynamic gameplay effects.

  • treat_as_background_for_occlusion (bool): [Read-Write] Treat this primitive as part of the background for occlusion purposes. This can be used as an optimization to reduce the cost of rendering skyboxes, large ground planes that are part of the vista, etc.

  • use_as_occluder (bool): [Read-Write] Whether to render the primitive in the depth only pass. This should generally be true for all objects, and let the renderer make decisions about whether to render objects in the depth only pass. todo: if any rendering features rely on a complete depth only pass, this variable needs to go away.

  • use_attach_parent_bound (bool): [Read-Write] If true, this component uses its parents bounds when attached. This can be a significant optimization with many components attached together.

  • use_max_lod_as_imposter (bool): [Read-Write] Use the Maximum LOD Mesh (imposter) instead of including Mesh data from this component in the Proxy Generation process

  • virtual_texture_cull_mips (int8): [Read-Write] Number of lower mips in the runtime virtual texture to skip for rendering this primitive. Larger values reduce the effective draw distance in the runtime virtual texture. This culling method doesn’t take into account primitive size or virtual texture size.

  • virtual_texture_lod_bias (int8): [Read-Write] Bias to the LOD selected for rendering to runtime virtual textures.

  • virtual_texture_min_coverage (int8): [Read-Write] Set the minimum pixel coverage before culling from the runtime virtual texture. Larger values reduce the effective draw distance in the runtime virtual texture.

  • virtual_texture_render_pass_type (RuntimeVirtualTextureMainPassType): [Read-Write] Controls if this component draws in the main pass as well as in the virtual texture.

  • visible (bool): [Read-Write] Whether to completely draw the primitive; if false, the primitive is not drawn, does not cast a shadow.

  • visible_in_ray_tracing (bool): [Read-Write] If true, this component will be visible in ray tracing effects. Turning this off will remove it from ray traced reflections, shadows, etc.

  • visible_in_real_time_sky_captures (bool): [Read-Write] If true, this component will be visible in real-time sky light reflection captures.

  • visible_in_reflection_captures (bool): [Read-Write] If true, this component will be visible in reflection captures.

  • visible_in_scene_capture_only (bool): [Read-Write] When true, will only be visible in Scene Capture

add_point(point, update_spline=True)None

Adds an FSplinePoint to the spline. This contains its input key, position, tangent, rotation and scale.

Parameters
add_points(points, update_spline=True)None

Adds an array of FSplinePoints to the spline.

Parameters
add_spline_local_point(position)None

Adds a local space point to the spline deprecated: Please use AddSplinePoint, specifying SplineCoordinateSpace::Local

Parameters

position (Vector) –

add_spline_point(position, coordinate_space, update_spline=True)None

Adds a point to the spline

Parameters
add_spline_point_at_index(position, index, coordinate_space, update_spline=True)None

Adds a point to the spline at the specified index

Parameters
add_spline_world_point(position)None

Adds a world space point to the spline deprecated: Please use AddSplinePoint, specifying SplineCoordinateSpace::World

Parameters

position (Vector) –

property b_always_render_in_editor

‘b_always_render_in_editor’ was renamed to ‘draw_debug’.

Type

deprecated

clear_spline_points(update_spline=True)None

Clears all the points in the spline

Parameters

update_spline (bool) –

property default_up_vector

[Read-Write] Default up vector in local space to be used when calculating transforms along the spline

Type

(Vector)

property draw_debug

[Read-Write] If true, the spline will be rendered if the Splines showflag is set.

Type

(bool)

property duration

[Read-Write] Specifies the duration of the spline in seconds

Type

(float)

find_direction_closest_to_world_location(world_location, coordinate_space)Vector

Given a location, in world space, return a unit direction vector of the spline tangent closest to the location.

Parameters
Returns

Return type

Vector

find_input_key_closest_to_world_location(world_location)float

Given a location, in world space, return the input key closest to that location.

Parameters

world_location (Vector) –

Returns

Return type

float

find_location_closest_to_world_location(world_location, coordinate_space)Vector

Given a location, in world space, return the point on the curve that is closest to the location.

Parameters
Returns

Return type

Vector

find_right_vector_closest_to_world_location(world_location, coordinate_space)Vector

Given a location, in world space, return a unit direction vector corresponding to the spline’s right vector closest to the location.

Parameters
Returns

Return type

Vector

find_roll_closest_to_world_location(world_location, coordinate_space)float

Given a location, in world space, return the spline’s roll closest to the location, in degrees.

Parameters
Returns

Return type

float

find_rotation_closest_to_world_location(world_location, coordinate_space)Rotator

Given a location, in world space, return rotation corresponding to the spline’s rotation closest to the location.

Parameters
Returns

Return type

Rotator

find_scale_closest_to_world_location(world_location)Vector

Given a location, in world space, return the spline’s scale closest to the location.

Parameters

world_location (Vector) –

Returns

Return type

Vector

find_tangent_closest_to_world_location(world_location, coordinate_space)Vector

Given a location, in world space, return the tangent vector of the spline closest to the location.

Parameters
Returns

Return type

Vector

find_transform_closest_to_world_location(world_location, coordinate_space, use_scale=False)Transform

Given a location, in world space, return an FTransform closest to that location.

Parameters
Returns

Return type

Transform

find_up_vector_closest_to_world_location(world_location, coordinate_space)Vector

Given a location, in world space, return a unit direction vector corresponding to the spline’s up vector closest to the location.

Parameters
Returns

Return type

Vector

get_arrive_tangent_at_spline_point(point_index, coordinate_space)Vector

Get the arrive tangent at spline point

Parameters
Returns

Return type

Vector

get_default_up_vector(coordinate_space)Vector

Gets the default up vector used by this spline

Parameters

coordinate_space (SplineCoordinateSpace) –

Returns

Return type

Vector

get_direction_at_distance_along_spline(distance, coordinate_space)Vector

Given a distance along the length of this spline, return a unit direction vector of the spline tangent there.

Parameters
Returns

Return type

Vector

get_direction_at_spline_input_key(key, coordinate_space)Vector

Get unit direction along spline at the provided input key value

Parameters
Returns

Return type

Vector

get_direction_at_spline_point(point_index, coordinate_space)Vector

Get the direction at spline point

Parameters
Returns

Return type

Vector

get_direction_at_time(time, coordinate_space, use_constant_velocity=False)Vector

Given a time from 0 to the spline duration, return a unit direction vector of the spline tangent there.

Parameters
Returns

Return type

Vector

get_distance_along_spline_at_spline_input_key(key)float

Get distance along the spline at the provided input key value

Parameters

key (float) –

Returns

Return type

float

get_distance_along_spline_at_spline_point(point_index)float

Get the distance along the spline at the spline point

Parameters

point_index (int32) –

Returns

Return type

float

get_float_property_at_spline_input_key(key, property_name)float

Get a metadata property float value along the spline at spline input key

Parameters
Returns

Return type

float

get_float_property_at_spline_point(index, property_name)float

Get a metadata property float value along the spline at spline point

Parameters
  • index (int32) –

  • property_name (Name) –

Returns

Return type

float

get_input_key_at_distance_along_spline(distance)float

Given a distance along the length of this spline, return the corresponding input key at that point

Parameters

distance (float) –

Returns

Return type

float

get_leave_tangent_at_spline_point(point_index, coordinate_space)Vector

Get the leave tangent at spline point

Parameters
Returns

Return type

Vector

get_local_location_and_tangent_at_spline_point(point_index) -> (local_location=Vector, local_tangent=Vector)

Get local location and tangent at a spline point deprecated: Please use GetLocationAndTangentAtSplinePoint, specifying SplineCoordinateSpace::Local

Parameters

point_index (int32) –

Returns

local_location (Vector):

local_tangent (Vector):

Return type

tuple

get_location_and_tangent_at_spline_point(point_index, coordinate_space) -> (location=Vector, tangent=Vector)

Get location and tangent at a spline point

Parameters
Returns

location (Vector):

tangent (Vector):

Return type

tuple

get_location_at_distance_along_spline(distance, coordinate_space)Vector

Given a distance along the length of this spline, return the point in space where this puts you

Parameters
Returns

Return type

Vector

get_location_at_spline_input_key(key, coordinate_space)Vector

Get location along spline at the provided input key value

Parameters
Returns

Return type

Vector

get_location_at_spline_point(point_index, coordinate_space)Vector

Get the location at spline point

Parameters
Returns

Return type

Vector

get_location_at_time(time, coordinate_space, use_constant_velocity=False)Vector

Given a time from 0 to the spline duration, return the point in space where this puts you

Parameters
Returns

Return type

Vector

get_num_spline_points()

deprecated: ‘get_num_spline_points’ was renamed to ‘get_number_of_spline_points’.

get_number_of_spline_points()int32

Get the number of points that make up this spline

Returns

Return type

int32

get_number_of_spline_segments()int32

Get the number of segments that make up this spline

Returns

Return type

int32

get_right_vector_at_distance_along_spline(distance, coordinate_space)Vector

Given a distance along the length of this spline, return a unit direction vector corresponding to the spline’s right vector there.

Parameters
Returns

Return type

Vector

get_right_vector_at_spline_input_key(key, coordinate_space)Vector

Get right vector at the provided input key value

Parameters
Returns

Return type

Vector

get_right_vector_at_spline_point(point_index, coordinate_space)Vector

Get the right vector at spline point

Parameters
Returns

Return type

Vector

get_right_vector_at_time(time, coordinate_space, use_constant_velocity=False)Vector

Given a time from 0 to the spline duration, return the spline’s right vector there.

Parameters
Returns

Return type

Vector

get_roll_at_distance_along_spline(distance, coordinate_space)float

Given a distance along the length of this spline, return the spline’s roll there, in degrees.

Parameters
Returns

Return type

float

get_roll_at_spline_input_key(key, coordinate_space)float

Get roll in degrees at the provided input key value

Parameters
Returns

Return type

float

get_roll_at_spline_point(point_index, coordinate_space)float

Get the amount of roll at spline point, in degrees

Parameters
Returns

Return type

float

get_roll_at_time(time, coordinate_space, use_constant_velocity=False)float

Given a time from 0 to the spline duration, return the spline’s roll there, in degrees.

Parameters
Returns

Return type

float

get_rotation_at_distance_along_spline(distance, coordinate_space)Rotator

Given a distance along the length of this spline, return a rotation corresponding to the spline’s rotation there.

Parameters
Returns

Return type

Rotator

get_rotation_at_spline_input_key(key, coordinate_space)Rotator

Get rotator corresponding to rotation along spline at the provided input key value

Parameters
Returns

Return type

Rotator

get_rotation_at_spline_point(point_index, coordinate_space)Rotator

Get the rotation at spline point as a rotator

Parameters
Returns

Return type

Rotator

get_rotation_at_time(time, coordinate_space, use_constant_velocity=False)Rotator

Given a time from 0 to the spline duration, return a rotation corresponding to the spline’s position and direction there.

Parameters
Returns

Return type

Rotator

get_scale_at_distance_along_spline(distance)Vector

Given a distance along the length of this spline, return the spline’s scale there.

Parameters

distance (float) –

Returns

Return type

Vector

get_scale_at_spline_input_key(key)Vector

Get scale at the provided input key value

Parameters

key (float) –

Returns

Return type

Vector

get_scale_at_spline_point(point_index)Vector

Get the scale at spline point

Parameters

point_index (int32) –

Returns

Return type

Vector

get_scale_at_time(time, use_constant_velocity=False)Vector

Given a time from 0 to the spline duration, return the spline’s scale there.

Parameters
  • time (float) –

  • use_constant_velocity (bool) –

Returns

Return type

Vector

get_spline_length()float

Returns total length along this spline

Returns

Return type

float

get_spline_point_type(point_index)SplinePointType

Get the type of a spline point

Parameters

point_index (int32) –

Returns

Return type

SplinePointType

get_tangent_at_distance_along_spline(distance, coordinate_space)Vector

Given a distance along the length of this spline, return the tangent vector of the spline there.

Parameters
Returns

Return type

Vector

get_tangent_at_spline_input_key(key, coordinate_space)Vector

Get tangent along spline at the provided input key value

Parameters
Returns

Return type

Vector

get_tangent_at_spline_point(point_index, coordinate_space)Vector

Get the tangent at spline point. This fetches the Leave tangent of the point.

Parameters
Returns

Return type

Vector

get_tangent_at_time(time, coordinate_space, use_constant_velocity=False)Vector

Given a time from 0 to the spline duration, return the spline’s tangent there.

Parameters
Returns

Return type

Vector

get_transform_at_distance_along_spline(distance, coordinate_space, use_scale=False)Transform

Given a distance along the length of this spline, return an FTransform corresponding to that point on the spline.

Parameters
Returns

Return type

Transform

get_transform_at_spline_input_key(key, coordinate_space, use_scale=False)Transform

Get transform at the provided input key value

Parameters
Returns

Return type

Transform

get_transform_at_spline_point(point_index, coordinate_space, use_scale=False)Transform

Get the transform at spline point

Parameters
Returns

Return type

Transform

get_transform_at_time(time, coordinate_space, use_constant_velocity=False, use_scale=False)Transform

Given a time from 0 to the spline duration, return the spline’s transform at the corresponding position.

Parameters
Returns

Return type

Transform

get_up_vector_at_distance_along_spline(distance, coordinate_space)Vector

Given a distance along the length of this spline, return a unit direction vector corresponding to the spline’s up vector there.

Parameters
Returns

Return type

Vector

get_up_vector_at_spline_input_key(key, coordinate_space)Vector

Get up vector at the provided input key value

Parameters
Returns

Return type

Vector

get_up_vector_at_spline_point(point_index, coordinate_space)Vector

Get the up vector at spline point

Parameters
Returns

Return type

Vector

get_up_vector_at_time(time, coordinate_space, use_constant_velocity=False)Vector

Given a time from 0 to the spline duration, return the spline’s up vector there.

Parameters
Returns

Return type

Vector

get_vector_property_at_spline_input_key(key, property_name)Vector

Get a metadata property vector value along the spline at spline input key

Parameters
Returns

Return type

Vector

get_vector_property_at_spline_point(index, property_name)Vector

Get a metadata property vector value along the spline at spline point

Parameters
  • index (int32) –

  • property_name (Name) –

Returns

Return type

Vector

get_world_direction_at_distance_along_spline(distance)Vector

Given a distance along the length of this spline, return a unit direction vector of the spline tangent there, in world space. deprecated: Please use GetDirectionAtDistanceAlongSpline, specifying SplineCoordinateSpace::World

Parameters

distance (float) –

Returns

Return type

Vector

get_world_direction_at_time(time, use_constant_velocity=False)Vector

Given a time from 0 to the spline duration, return a unit direction vector of the spline tangent there. deprecated: Please use GetDirectionAtTime, specifying SplineCoordinateSpace::World

Parameters
  • time (float) –

  • use_constant_velocity (bool) –

Returns

Return type

Vector

get_world_location_at_distance_along_spline(distance)Vector

Given a distance along the length of this spline, return the point in world space where this puts you deprecated: Please use GetLocationAtDistanceAlongSpline, specifying SplineCoordinateSpace::World

Parameters

distance (float) –

Returns

Return type

Vector

get_world_location_at_spline_point(point_index)Vector

Get the world location at spline point deprecated: Please use GetLocationAtSplinePoint, specifying SplineCoordinateSpace::World

Parameters

point_index (int32) –

Returns

Return type

Vector

get_world_location_at_time(time, use_constant_velocity=False)Vector

Given a time from 0 to the spline duration, return the point in space where this puts you deprecated: Please use GetLocationAtTime, specifying SplineCoordinateSpace::World

Parameters
  • time (float) –

  • use_constant_velocity (bool) –

Returns

Return type

Vector

get_world_rotation_at_distance_along_spline(distance)Rotator

Given a distance along the length of this spline, return a rotation corresponding to the spline’s rotation there, in world space. deprecated: Please use GetRotationAtDistanceAlongSpline, specifying SplineCoordinateSpace::World

Parameters

distance (float) –

Returns

Return type

Rotator

get_world_rotation_at_time(time, use_constant_velocity=False)Rotator

Given a time from 0 to the spline duration, return a rotation corresponding to the spline’s position and direction there, in world space. deprecated: Please use GetRotationAtTime, specifying SplineCoordinateSpace::World

Parameters
  • time (float) –

  • use_constant_velocity (bool) –

Returns

Return type

Rotator

get_world_tangent_at_distance_along_spline(distance)Vector

Given a distance along the length of this spline, return the tangent vector of the spline there, in world space. deprecated: Please use GetTangentAtDistanceAlongSpline, specifying SplineCoordinateSpace::World

Parameters

distance (float) –

Returns

Return type

Vector

property input_spline_points_to_construction_script

[Read-Write] Whether the spline points should be passed to the User Construction Script so they can be further manipulated by it. If false, they will not be visible to it, and it will not be able to influence the per-instance positions set in the editor.

Type

(bool)

is_closed_loop()bool

Check whether the spline is a closed loop or not

Returns

Return type

bool

remove_spline_point(index, update_spline=True)None

Removes point at specified index from the spline

Parameters
  • index (int32) –

  • update_spline (bool) –

set_closed_loop(closed_loop, update_spline=True)None

Specify whether the spline is a closed loop or not. The loop position will be at 1.0 after the last point’s input key

Parameters
  • closed_loop (bool) –

  • update_spline (bool) –

set_closed_loop_at_position(closed_loop, key, update_spline=True)None

Specify whether the spline is a closed loop or not, and if so, the input key corresponding to the loop point

Parameters
  • closed_loop (bool) –

  • key (float) –

  • update_spline (bool) –

set_default_up_vector(up_vector, coordinate_space)None

Sets the default up vector used by this spline

Parameters
set_draw_debug(show)None

Specify whether this spline should be rendered when the Editor/Game spline show flag is set

Parameters

show (bool) –

set_location_at_spline_point(point_index, location, coordinate_space, update_spline=True)None

Move an existing point to a new location

Parameters
set_rotation_at_spline_point(point_index, rotation, coordinate_space, update_spline=True)None

Set the rotation of an existing spline point

Parameters
set_scale_at_spline_point(point_index, scale_vector, update_spline=True)None

Set the scale at a given spline point

Parameters
  • point_index (int32) –

  • scale_vector (Vector) –

  • update_spline (bool) –

set_selected_spline_segment_color(segment_color)None

Specify selected spline component segment color in the editor

Parameters

segment_color (LinearColor) –

set_spline_local_points(points)None

Sets the spline to an array of local space points deprecated: Please use SetSplinePoints, specifying SplineCoordinateSpace::Local

Parameters

points (Array(Vector)) –

set_spline_point_type(point_index, type, update_spline=True)None

Specify the type of a spline point

Parameters
set_spline_points(points, coordinate_space, update_spline=True)None

Sets the spline to an array of points

Parameters
set_spline_world_points(points)None

Sets the spline to an array of world space points deprecated: Please use SetSplinePoints, specifying SplineCoordinateSpace::World

Parameters

points (Array(Vector)) –

set_tangent_at_spline_point(point_index, tangent, coordinate_space, update_spline=True)None

Specify the tangent at a given spline point

Parameters
set_tangent_color(tangent_color)None

Specify selected spline component segment color in the editor

Parameters

tangent_color (LinearColor) –

set_tangents_at_spline_point(point_index, arrive_tangent, leave_tangent, coordinate_space, update_spline=True)None

Specify the tangents at a given spline point

Parameters
set_unselected_spline_segment_color(segment_color)None

Specify unselected spline component segment color in the editor

Parameters

segment_color (LinearColor) –

set_up_vector_at_spline_point(point_index, up_vector, coordinate_space, update_spline=True)None

Specify the up vector at a given spline point

Parameters
set_world_location_at_spline_point(point_index, location)None

Move an existing point to a new world location deprecated: Please use SetLocationAtSplinePoint, specifying SplineCoordinateSpace::World

Parameters
  • point_index (int32) –

  • location (Vector) –

property stationary_endpoints

[Read-Write] Whether the endpoints of the spline are considered stationary when traversing the spline at non-constant velocity. Essentially this sets the endpoints’ tangents to zero vectors.

Type

(bool)

update_spline()None

Update the spline tangents and SplineReparamTable