EditorUtility.ResetGameObjectToPrefabState 重设游戏物体到预置状态

static function ResetGameObjectToPrefabState (go : GameObject) : bool

Description描述

Resets the properties of game object and all attached components to the parent prefab state

重设游戏物体和所有附加的组件属性到父预置状态。

All overrides will be cleared. However the transform.position and rotation of a root game object in a prefab instance will never be cleared.

所有覆盖将被清除。然而,预设实例根游戏物体的transform.position 和 rotation,将不会被清除。

Page last updated: 2011-7-16