Legacy Documentation: Version 2017.1 (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.

Did you find this page useful? Please give it a rating: