Skip to content
ct

Class

AgeSceneReplacement

Generated GDScript class reference for CalendarTime.AgeSceneReplacement.

Status
Current
Version
v2.0.4
Updated
2026-08-09

Settings and execution for replacing a target node with an instance of a PackedScene

Source: addons/calendar_time/ageing/age_scene_replacement.gd

Syntax

class AgeSceneReplacement extends Node

Members

NameKindSummary
AgeSignalBusField`AgeSignalBus` is preloaded here to observe age-state transitions.
replacement_createdSignalEmitted after an aged node is swapped for its replacement scene instance.
age_componentPropertyThe context for the AgeState. Can be manually set or automatically defaults to parent node.
replacement_scene_pathPropertyFilesystem path to the scene that replaces the target at its age threshold.
target_pathPropertyPath to the node replaced when its age threshold is crossed.
age_thresholdPropertyAge value at which the target node is swapped for the replacement scene.
replacement_scenePropertyPacked scene loaded from the replacement path and instantiated on crossing.
is_ready_to_replaceMethod
startMethod
finishMethod
validateMethod
transfer_age_dataMethod