Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

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

PrefabUtility.DisconnectPrefabInstance

static function DisconnectPrefabInstance(targetObject: Object): void;
static void DisconnectPrefabInstance(Object targetObject);
static def DisconnectPrefabInstance(targetObject as Object) as void

Description

Disconnects the prefab instance from its parent prefab.