Orrery Terrain · OrreryTerrainEditor module · class
UOrreryTerrainPlateTool
Editor onlyPlate: click the polygon's vertices on the ground; Enter commits, Backspace takes the last vertex back, Esc cancels.
Declaration
UCLASS()
class UOrreryTerrainPlateTool : 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
From three vertices the cut and fill are previewed live (EvaluateFeature). The polygon is turned counter-clockwise (the terrain's order) keeping the first vertex first, since the top height is stated there. A commit that waits for its ground keeps the vertices until it lands; Esc then cancels the wait, and a second Esc drops the vertices.
Types
- EAction enum
Action ids of the hotkeys.
CommitAction, RemoveLastAction, CancelAction
Functions
- Setup
- Shutdown
- Render
- RegisterActions
- OnPropertyModified
- GetHudLines
The HUD's lines as drawn this frame.
- CommitPlate
Place the plate.
- RemoveLastVertex
- CancelPlate
- MakePlate
The plate the vertices and settings describe now, in Blueprint units.
- GetVertices
- GetPreview
- GetProperties
- 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.