Navigation
API > API/Runtime > API/Runtime/Landscape
Inheritance Hierarchy
- UPrimitiveComponent
- ULandscapeSplinesComponent
References
| Module | Landscape |
| Header | /Engine/Source/Runtime/Landscape/Classes/LandscapeSplinesComponent.h |
| Include | #include "LandscapeSplinesComponent.h" |
Syntax
UCLASS (MinimalAPI)
class ULandscapeSplinesComponent : public UPrimitiveComponent
Remarks
Variables
| Type | Name | Description | |
|---|---|---|---|
| uint32: 1 | bShowSplineEditorMesh | Whether we are in-editor and showing spline editor meshes | |
| TArray< TObjectPtr< ULandscapeSplineControlPoint > > | ControlPoints | ||
| TObjectPtr< UTexture2D > | ControlPointSprite | Sprite used to draw control points | |
| TArray< TObjectPtr< UMeshComponent > > | CookedForeignMeshComponents | References to components owned by landscape splines in other levels for cooked build (uncooked keeps references via ForeignWorldSplineDataMap) | |
| TMap< TSoftObjectPtr< UWorld >, FForeignWorldSplineData > | ForeignWorldSplineDataMap | Serialized. | |
| TMap< UMeshComponent *, TLazyObjectPtr< UObject > > | MeshComponentForeignOwnersMap | ||
| TMap< UMeshComponent *, UObject * > | MeshComponentLocalOwnersMap | Transient - rebuilt on load. | |
| TArray< TObjectPtr< ULandscapeSplineSegment > > | Segments | ||
| FColor | SplineColor | Color to use to draw the splines | |
| TObjectPtr< UStaticMesh > | SplineEditorMesh | Mesh used to draw splines that have no mesh | |
| float | SplineResolution | Resolution of the spline, in distance per point |
Constructors
| Type | Name | Description | |
|---|---|---|---|
ULandscapeSplinesComponent
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddForeignMeshComponent
(
ULandscapeSplineSegment* Owner, |
||
| void | AddForeignMeshComponent
(
ULandscapeSplineControlPoint* Owner, |
||
| void | AutoFixMeshComponentErrors
(
UWorld* OtherWorld |
||
| FBoxSphereBounds | CalcBounds
(
const FTransform& LocalToWorld |
||
| void | |||
| void | |||
| void | CopyToSplineComponent
(
USplineComponent* SplineComponent |
Converts points along the landscape spline into points on a spline component Works best with landscape splines that contain no intersections or splits | |
| FPrimitiveSceneProxy * | |||
| void | DestroyOrphanedForeignControlPointMeshComponents
(
UWorld* OwnerWorld |
||
| void | DestroyOrphanedForeignSplineMeshComponents
(
UWorld* OwnerWorld |
||
| void | |||
| void | ForEachControlPoint
(
TFunctionRef< void(ULandscapeSplineControlPoint*)> Func |
Iterates throug a copy of the ControlPoints list. | |
| void | ForEachUnreferencedForeignMeshComponent
(
TFunctionRef< bool(ULandscapeSplineSegment*, USplineMeshComponent*, ULandscapeSplineContro... |
||
| TArray< ULandscapeSplinesComponent * > | Gathers and returns all currently existing | ||
| const TArray< TObjectPtr< ULandscapeSplineControlPoint > > & | |||
| TArray< TObjectPtr< ULandscapeSplineControlPoint > > & | |||
| UControlPointMeshComponent * | |||
| TArray< USplineMeshComponent * > | GetForeignMeshComponents
(
ULandscapeSplineSegment* Owner |
||
| UObject * | GetOwnerForMeshComponent
(
const UMeshComponent* SplineMeshComponent |
||
| TArray< TObjectPtr< ULandscapeSplineSegment > > & | GetSegments () |
||
| const TArray< TObjectPtr< ULandscapeSplineSegment > > & | GetSegments () |
||
| TArray< USplineMeshComponent * > | Get a list of spline mesh components representing this landscape spline (Editor only) | ||
| ILandscapeSplineInterface * | |||
| ULandscapeSplinesComponent * | GetStreamingSplinesComponentByLocation
(
const FVector& LocalLocation, |
Returns a suitable ULandscapeSplinesComponent to place streaming meshes into, given a location falls back to "this" if it can't find another suitable, so never returns nullptr | |
| ULandscapeSplinesComponent * | GetStreamingSplinesComponentForLevel
(
ULevel* Level, |
Returns the matching ULandscapeSplinesComponent for a given level, can return null | |
| bool | |||
| bool | IsUsingEditorMesh
(
const USplineMeshComponent* SplineMeshComponent |
||
| bool | IsUsingLayerInfo
(
const ULandscapeLayerInfoObject* LayerInfo |
||
| bool | ModifySplines
(
bool bAlwaysMarkDirty |
||
| void | OnRegister () |
||
| void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
||
| void | PostEditUndo () |
||
| void | PostLoad () |
||
| void | RebuildAllSplines
(
bool bBuildCollision |
Rebuilds all spline points and meshes for all spline control points and segments in this splines component | |
| void | |||
| void | RemoveForeignMeshComponent
(
ULandscapeSplineSegment* Owner, |
||
| void | RemoveForeignMeshComponent
(
ULandscapeSplineControlPoint* Owner, |
||
| void | |||
| void | Serialize
(
FArchive& Ar |
||
| void | ShowSplineEditorMesh
(
bool bShow |
||
| void | UpdateModificationKey
(
ULandscapeSplineSegment* Owner |
||
| void |