Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commit0a13e47b57

README.md

Release recorded authored edits

An edit made in edit mode on an entity a scene's build placed (an Inspector change, a script's write) is recorded as an authored edit and composes over every build, so the field holds that value whatever build.luau states. A build lists each one in its authored list, with the entity and the field path. Releasing an entity's recorded edits removes them from the scene's authored state, and its fields follow what the build generates again.

tools.use("sceneAuthoring","releaseAuthored",{entity="ent_b44800e6a5c1adb2"})
tools.use("sceneAuthoring","releaseAuthored",{entity="ent_b44800e6a5c1adb2",path={"components",assetGuid,"anonymous"}})

Without path, every recorded field edit of the entity is released; with one, the edits at or under it. A whole-entity edit (an entity no build placed, or one an author removed) is released only by its empty path, {}. The release commits like any recorded scene edit and answers with the paths it released; an entity with nothing recorded answers applied = false and why.