Legacy Documentation: Version 4.6(go to latest)
Language: English
  • C#
  • JS
  • Boo

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

PrefabUtility.ReconnectToLastPrefab

public static function ReconnectToLastPrefab(go: GameObject): bool;

Description

Connects the game object to the prefab that it was last connected to.

Returns true if the game object has never been a prefab instance.