Skip to content

Class

PlacementActionHistory

Generated GDScript class reference for GridPlacement.PlacementActionHistory.

Status
Current
Version
v6.0
Source updated
Active v6.0 guide line from Grid Placement repo
Generated on
2026-09-01

Persistent action history for placement and manipulation events. Stores [PlacementActionData] and [ManipulationData] entries in a serializable [Resource] so the action log survives UI close / scene changes. Supports [ResourceSaver]/[ResourceLoader] round-trips out of the box because all state is [member action_entries] — an exported [Dictionary] whose keys are timestamps and values are one of the two data types. Usage: var history := PlacementActionHistory.new() history.add_entry(data) ResourceSaver.save(history, "user://action_history.res") var loaded := ResourceLoader.load("user://action_history.res") as PlacementActionHistory

Source: addons/grid_placement/resources/placement_action_history.gd

Syntax

class PlacementActionHistory extends Resource

Members

NameKindSummary
entry_addedSignalEmitted whenever a new entry is added.
action_entriesPropertyOrdered entries. Keys are monotonically increasing frame-time integers; values are [PlacementActionData] or [ManipulationData]. Exported for [ResourceSaver] serialization (supported in Godot 4.4+).
auto_dump_pathPropertyAuto-dump path. When non-empty, the history is written to this path on [method dump_to_disk].
add_entryMethod
get_entriesMethod
get_recent_entriesMethod
clearMethod
save_to_fileMethod
load_from_fileMethod
dump_to_diskMethod
dump_to_textMethod