Legacy Documentation: Version 5.3
LanguageEnglish
  • C#
  • JS

Script language

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

PrefabUtility.DisconnectPrefabInstance

public static void DisconnectPrefabInstance(Object targetObject);

Parameters

Description

Disconnects the prefab instance from its parent prefab.