[][src]Function librojo::snapshot_reconciler::snapshot_from_tree

pub fn snapshot_from_tree(
    tree: &RbxTree,
    id: RbxId
) -> Option<RbxSnapshotInstance<'static>>

Generates an RbxSnapshotInstance from an existing RbxTree and an ID to use as the root of the snapshot.

This is used to transform instances created by rbx_xml and rbx_binary into snapshots that can be applied to the tree to reduce instance churn.