Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

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

PrefabUtility.FindValidUploadPrefabInstanceRoot

static function FindValidUploadPrefabInstanceRoot(target: GameObject): GameObject;
static GameObject FindValidUploadPrefabInstanceRoot(GameObject target);
static def FindValidUploadPrefabInstanceRoot(target as GameObject) as GameObject

Description

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