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 NodeMembers
| Name | Kind | Summary |
|---|---|---|
AgeSignalBus | Field | `AgeSignalBus` is preloaded here to observe age-state transitions. |
replacement_created | Signal | Emitted after an aged node is swapped for its replacement scene instance. |
age_component | Property | The context for the AgeState. Can be manually set or automatically defaults to parent node. |
replacement_scene_path | Property | Filesystem path to the scene that replaces the target at its age threshold. |
target_path | Property | Path to the node replaced when its age threshold is crossed. |
age_threshold | Property | Age value at which the target node is swapped for the replacement scene. |
replacement_scene | Property | Packed scene loaded from the replacement path and instantiated on crossing. |
is_ready_to_replace | Method | |
start | Method | |
finish | Method | |
validate | Method | |
transfer_age_data | Method |