Version: 2019.1

PrefabUtility.UnloadPrefabContents

Switch to Manual
public static void UnloadPrefabContents (GameObject root);

Parameters

contentsRootThe root of the loaded Prefab contents.

Description

Releases the content from a Prefab previously loaded with LoadPrefabContents from memory.

This will destroy the GameObject in memory and release the isolated Scene used to contain the Prefab content.

The root GameObject will not be available after this call. The Prefab Asset itself is not affected by this call.