Serialize Actor To JSON

Pure
SerializeActorToJSON

Serializes 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

NameTypeDefaultDescription
ActorAActor*Actor parameter
bIncludeComponentsbooltruebIncludeComponents parameter

Outputs

NameTypeDescription
JSONStringFStringJSONString output
bSuccessboolbSuccess 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.