ALandscapeProxy::EditorApplySpline

Deform landscape using a given spline

Windows
MacOS
Linux

References

Module

Landscape

Header

/Engine/Source/Runtime/Landscape/Classes/LandscapeProxy.h

Include

#include "LandscapeProxy.h"

Source

/Engine/Source/Runtime/Landscape/Private/LandscapeBlueprintSupport.cpp

Syntax

void EditorApplySpline
(
    USplineComponent * InSplineComponent,
    float StartWidth,
    float EndWidth,
    float StartSideFalloff,
    float EndSideFalloff,
    float StartRoll,
    float EndRoll,
    int32 NumSubdivisions,
    bool bRaiseHeights,
    bool bLowerHeights,
    ULandscapeLayerInfoObject * PaintLayer,
    FName EditLayerName
)

Remarks

Deform landscape using a given spline

Parameters

Parameter

Description

InSplineComponent

The component containing the spline data

StartWidth

Width of the spline at the start node, in Spline Component local space

EndWidth

Width of the spline at the end node, in Spline Component local space

StartSideFalloff

Width of the falloff at either side of the spline at the start node, in Spline Component local space

EndSideFalloff

Width of the falloff at either side of the spline at the end node, in Spline Component local space

StartRoll

Roll applied to the spline at the start node, in degrees. 0 is flat

EndRoll

Roll applied to the spline at the end node, in degrees. 0 is flat

NumSubdivisions

Number of triangles to place along the spline when applying it to the landscape. Higher numbers give better results, but setting it too high will be slow and may cause artifacts

bRaiseHeights

Allow the landscape to be raised up to the level of the spline. If both bRaiseHeights and bLowerHeights are false, no height modification of the landscape will be performed

bLowerHeights

Allow the landscape to be lowered down to the level of the spline. If both bRaiseHeights and bLowerHeights are false, no height modification of the landscape will be performed

PaintLayer

LayerInfo to paint, or none to skip painting. The landscape must be configured with the same layer info in one of its layers or this will do nothing!

EditLayerName

Name of the landscape edition layer to affect (in Edit Layers mode)

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss