Version: 2022.3
言語: 日本語
Method group is Obsolete

PrefabUtility.FindPrefabRoot

マニュアルに切り替える
Obsolete public static GameObject FindPrefabRoot (GameObject source);

パラメーター

source 検証するオブジェクト

戻り値

GameObject The Prefab root.

説明

Retrieves the root GameObject of the Prefab that the supplied GameObject is part of.

This method checks if the object is part of a Prefab (either a Prefab instance or a Prefab Asset) and if so, returns the root GameObject of the Prefab.

This method is used internally in the Editor to help the user select the correct object when GameObjects are clicked in the Scene view.