Restore actor to state of properties saved in specified snapshot
restoreSnapshot( restores properties of
the actor specified by
actor to the values stored in the snapshot. If
IncludeChildren is set to
true while taking the snapshot,
all the properties of the children of the actor restore to their original state.
actor — Actor class whose properties are restored
Actor class whose properties are restored, specified as a
SnapID — Name of snapshot
Name of snapshot being restored, specified as a character array. If
SnapID is empty or incorrect or non existing snapshot ID is
provided, it will result in an error and no snapshot will be restored.
Introduced in R2022b