Serialize Actor To JSON
PureSerializeActorToJSONSerializes an actor's properties (and optionally components) to a JSON string.
Type: Pure (no side effects)
Category: Fortuna|Save/Load & Data
Keywords: save/load & data
Inputs
| Name | Type | Default | Description |
|---|---|---|---|
| Actor | AActor* | — | Actor parameter |
| bIncludeComponents | bool | true | bIncludeComponents parameter |
Outputs
| Name | Type | Description |
|---|---|---|
| JSONString | FString | JSONString output |
| bSuccess | bool | bSuccess output |
Example Use Cases
Example 1
Save an actor's state to a save file.
Example 2
Send actor data over the network as JSON.