Legacy Documentation: Version 5.2
LanguageEnglish
  • C#
  • JS

Script language

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

ReplacePrefabOptions

enumeration

Switch to Manual

Description

Flags for the PrefabUtility.ReplacePrefab function.

Variables

DefaultReplaces prefabs by matching pre-existing connections to the prefab.
ConnectToPrefabConnects the passed objects to the prefab after uploading the prefab.
ReplaceNameBasedReplaces the prefab using name based lookup in the transform hierarchy.