Legacy Documentation: Version 5.1
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 function FindValidUploadPrefabInstanceRoot(target: GameObject): GameObject;

Parameters

Description

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