Skip to content

Kiln API / kiln / SnapshotOptions

Interface: SnapshotOptions ​

Properties ​

PropertyTypeDescription
traits?Trait[]Only these traits, and only entities that have at least one of them. Default: every trait.
resources?boolean | Resource<any>[]Resources to include, or true for all JSON-friendly ones. Default: none.
precision?numberRound numbers to this many decimals. Default: exact.
omitDefaults?booleanLeave out struct fields equal to the trait's default, for compact output.
refs?booleanKeep non-JSON trait values (Three.js objects) by reference. In-memory only; used by hot reload.