# Persist

> Aego 0.12.5 · development; docs build `4a32b816933e02930662f6a443cb25abe6050d090c55e237cbff5c44ae9b25f8`. [Build manifest](/docs-build.json).

```
component save.Persist
```

Saves the node's transform and enabled flag in save games.

## From a script

`Persist` marks a node for save games; the script decides when to save and load.

```aes check
package game

import (
    "aego/input"
    "aego/save"
)

script QuickSave {
    func Update(dt float) {
        if input.KeyPressed(input.KeyF5) {
            save.Save("quick")
        }
        if input.KeyPressed(input.KeyF9) && save.Exists("quick") {
            save.Load("quick")
        }
    }
}
```

## Fields

| Name | Script name | Type | Default | Description |
|---|---|---|---|---|
| No Transform | `NoTransform` | `bool` | `false` | Leaves the transform out of save games, for nodes whose position comes from elsewhere. |
| No Enabled | `NoEnabled` | `bool` | `false` | Leaves the enabled flag out of save games. |
