Legacy Documentation: Version 5.2
LanguageEnglish
  • C#
  • JS

Script language

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

PrefabUtility.FindValidUploadPrefabInstanceRoot

Switch to Manual
public static GameObject FindValidUploadPrefabInstanceRoot(GameObject target);

Parameters

Description

Returns root game object of the prefab instance if that root prefab instance is a parent of the prefab.