文档

Unity Engine

Unity Engine

ResetToPrefabState(Object)

Resets the properties of the component or game object to the parent Prefab state.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
警告
Deprecated. Use RevertObjectOverride.
public static bool ResetToPrefabState(Object obj)

Parameters

Returns

Type

Description

bool

Remarks

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