Orrery Terrain · OrreryTerrainEditor module · class
UOrreryTerrainFeatureListTool
Editor onlyFeatures: lists the features the editor authored, highlights the selected one (picked in the list or by a click on its footprint), replaces it with edited parameters or removes it.
Declaration
UCLASS()
class UOrreryTerrainFeatureListTool : public UOrreryTerrainFeatureToolBase- Header
#include "Tools/OrreryTerrainFeatureTools.h"- Module
PublicDependencyModuleNames.Add("OrreryTerrainEditor");in an editor module’s Build.cs: an editor module, not in packaged games.- Stability
- Stable: changes within a major version only add.
- Derives from
UOrreryTerrainFeatureToolBase
Description
Each is one transaction. The list follows every edit of the terrain as it is published (OnGroundChanged): its own, undo and redo, and features placed outside it (another tool's commit that landed late, the editor library, a script). Delete removes the selection, Esc clears it.
A spline feature shows as "Spline: <actor>": its parameters are read-only here (they are its component's), Remove works (the component then shows it Missing and builds nothing until its spline is edited or rebuilt), and Select Actor selects the actor that owns it.
Types
- EAction enum
Action ids of the hotkeys.
RemoveAction, ClearAction
Functions
- Setup
- Shutdown
- OnTick
- Render
- RegisterActions
- OnPropertyModified
- GetHudLines
The HUD's lines as drawn this frame.
- Refresh
Re-read the authored features from the terrain.
- Select
Select a feature by id (0 clears).
- ApplyChanges
Replace the selected feature with the edit settings.
- RemoveSelected
Remove the selected feature, now or once its ground has loaded (IsPlacing).
- SelectSplineActor
Select the editor actor of the selected spline feature.
- IsSplineFeature
Whether the feature Id is a spline feature's: an editor feature whose owner id has the spline bit.
- GetSelectedId
- GetFeatureIds
- GetListProperties
- GetEditProperties
- FeatureAt
The authored feature whose footprint holds Location_cm (plan), the topmost in the stack; 0 if none.
- OnGroundClickedprotected
A click on the ground at Hit (world cm).
- OnFeatureCommittedprotected
A commit of this tool landed as feature Id: at once, or from the tick after its ground loaded.
- OnFeatureRemovedprotected
A removal of this tool landed as feature Id: at once, or from the tick after its ground loaded.