Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commite8beb5604c

README.md

scene_saver.serialize

One live entity as the record a scene file carries, and the reads the saver asks of a live entity while it decides what to record.

  • serializeEntity(id, parentById) answers the record for a live entity: its name, parent reference, transform, components (each field value serialized), participation, network scope, render layer and attributes. A field holding a runtime GPU handle is reported once, with the remedy, and left out of the record.
  • serializeFieldValue(v) answers one component field value as a record states it, with the reason when the value has no record form.
  • entityDisplayName(id) answers the name an entity is shown by, and entityIsTemporary(id) whether it is marked as never saved.
local Serialize = require("@builtin::assetTypes.scene.shared.saver.serialize")
for _, e in ipairs(entity.findAll()) do
    print(Serialize.serializeEntity(e.id).name)
end