Legacy Documentation: Version 5.6 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

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

ReplacePrefabOptions

enumeration

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.