Undo.RegisterCreatedObjectUndo 注册创建物体撤销

static function RegisterCreatedObjectUndo (objectToUndo : Object, name : string) : void

Parameters参数

Description描述

Register the state of a Unity Object so the user can later undo back to that state.

记录Unity物体的状态,为了以后执行撤消时恢复。

Call this method before performing an operation that it should be possible to undo.

执行操作之前调用这个方法应该,这样才能undo。

参见:Undo.RegisterUndo.

最后修改:2011年5月18日 Wednesday 15:41

本脚本参考基于Unity 3.4.1f5

英文部分版权属©Unity公司所有,中文部分© Unity圣典 版权所有,未经许可,严禁转载 。