ドキュメント

Unity Engine

Unity Engine

UnloadPrefabContents(GameObject)

Releases the content from a Prefab previously loaded with PrefabUtility.LoadPrefabContents from memory.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public static void UnloadPrefabContents(GameObject contentsRoot)

Parameters

contentsRoot

The root of the loaded Prefab contents.

Remarks

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.